This article assumes that you have a google account already created. If you do not have a google account, you can sign up one from here https://www.google.com/accounts/NewAccount. This article assumes that you want to allow users to search your site using google custom search.
- First you go to the URL http://www.google.com/coop/cse/, if you are not signed in, click on the sign in link and enter your credentials.
Once you signed in(make sure you are in the above specified URL) you can find a button similar to in the page. Click on the button to define a new search.
- Enter search engine name, description and choose a language for your search engine. you can define these fields as you wish that matches/identifies your search engine.
- In the “What do you want to search?” : select “Only sites I select”
- In the “select some sites” section, enter yoursite.com/* (this ensure the results from all the files inside yoursite.com
- Editions: choose standard (this is the free edition that google provides)
- Check the I agree checkbox and click next
- In the next page, you can try some search words in test the search results. Here you can confirm the configured search is working fine.
- Click finish button. You will be redirected to your search engine list page. Here you will see all the search engines you have configured under your account.
- Click on the “control panel” link next to your “search engine name”
- Now you will see the control panel for your search engine. You can view/edit the properties for your search engine from this page.
- From the left menu, click on “Look and feel” – here you can select the hosting option you want. You can choose the options you want and you can choose the style as you want. Once you finish this you can get the code for your search engine and use it.
- Now from the left menu, click on “Get Code”
- You will get the code for the google search engine. You can copy this and use in your page. Publish the page to your hosting server and see how this works.
Google has updating the CSE pages regularly, so there are chances that the items specified in the article may change. Wish this helps you to build your first search engine.