"Knowledge has to be improved, challenged, and increased constantly, or it vanishes."

Getting started with Google custom search Integration

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.

 

  1. 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 image  in the page. Click on the button to define a new search.  
  2. 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.
  3. In the “What do you want to search?” : select “Only sites I select”
  4. In the “select some sites” section, enter yoursite.com/* (this ensure the results from all the files inside yoursite.com
  5. Editions: choose standard (this is the free edition that google provides)
  6. Check the I agree checkbox and click next
  7. 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.
  8. 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.
  9. Click on the “control panel” link next to your “search engine name”
  10. Now you will see the control panel for your search engine. You can view/edit the properties for your search engine from this page.
  11. 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.
  12. Now from the left menu, click on “Get Code
  13. 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.

2 Comments

Comments have been disabled for this content.