Sign in

...

My search engines

Transitioning from a Google Stored CSE to a Linked CSE

If you want to change from having Google store your Custom Search Engine definition to storing it on your own web server with a Linked CSE, follow these steps:

  1. From the control panel of your Custom Search Engine, go to the Advanced tab. In the "Download annotations" section, click "Download in XML format". Save the resulting file. We assume you call it myannos.xml.

  2. From the "Download context" section, click "Download in XML format". Save the resulting file. We assume you call it mycontext.xml.

  3. Put myannos.xml on your web server. How you do this varies with your hosting company and web server configuration, so please see that documentation if you are having problems. Let's say your annotations file is now available at http://myserver.com/user/myannos.xml.

  4. Edit mycontext.xml in your favorite text editor and do the following.

    • Insert <GoogleCustomizations> before the first <CustomSearchEngine> tag.

    • Add </GoogleCustomizations> as the last line of the file.

    • Before the final </GoogleCustomizations> tag, insert:

      <Include type="Annotations" href="http://myserver.com/user/myannos.xml"/>

  5. Put mycontext.xml on your web server. Let's say that it is now available at http://myserver.com/user/mycontext.xml.

  6. Your search box code will now need to change. Simply replace http://myserver.com/user/mycontext.xml in this code with the actual location of your xml file.

    Note: you can also use a Linked CSE to host the search results on your site, but that requires another code snippet. See the Linked CSE documentation for more information.