Information Technology Services - Computing, Networking and Storage
Would you like to answer a few questions to help us improve our website?
Yes | No Thanks | Maybe Later

Using the New Google Search on Your Website

The search on USC's homepage is now powered by Google, using a Google Search Appliance (GSA) operated by Information Technology Services.

USC website maintainers are encouraged to incorporate the new search on their sites, and sites that currently use the Ultraseek search engine should switch to the GSA search as soon as possible, as the Ultraseek search will be discountinued on October 1, 2007. (Websites in the Web Services CMS will be updated by ITS Web Services.)

Overview

The GSA returns search results in XML. To view raw XML results returned by the GSA, go to http://www.usc.edu/search/gsa/test.html and do a test search.

The advantage of XML results is that they can be incorporated into custom results pages residing on your web site. Site maintainers can choose to:
  • format the search results using XSLT -or-
  • use a scripting language such as PHP to parse the XML results and present them as (X)HTML. Sites on www.usc.edu are restricted to PHP; on unit-operated web servers, webmasters can use their preferred language.

Programmers who prefer to deal directly with the GSA should consult the Google Search Protocol Reference for details on constructing a search and interpreting XML output.

For those who prefer a 'drop-in' solution, ITS Web Services provides a PHP script that can be included in your custom results page at the location where results should be displayed. The following pages describe how to use this script:



Last updated: Monday, August 03, 2009, 14:18PM PDT