beautypg.com

Restricting searches, Processing xml output, Useful knowledge for using the search protocol – Google Search Appliance Getting the Most from Your Google Search Appliance User Manual

Page 66: Learn more about the search protocol, Writing applications with the feeds protocol, Useful knowledge for writing a feed client

background image

Google Search Appliance: Getting the Most from Your Google Search Appliance

Essentials

66

Formatting search results by using an XSL stylesheet associated with a specific Front End

Limiting search results to the contents of a specified collection

Restricting Searches

Use query terms to restrict a search. Ways that you can use query terms to restrict searches include:

Restricting a search to pages that contain all the search terms in the anchor text of the page

Restricting a search to documents with modification dates that fall within a time frame

Restricting a search to documents containing a keyword in the title

Processing XML Output

XML-formatted output makes it possible to integrate the search results in various applications. Using
the Google XML results format, you can use your own XML parser to customize the display for your
search users.

Google XML results can be returned with or without a reference to the most recent DTD (Document
Type Definition) describing Google’s XML format. The DTD is a guide to help search administrators and
XML parsers understand the XML results output.

Useful Knowledge for Using the Search Protocol

To use the Search Protocol, you need a basic understanding of the HTTP protocol and HTML document
format.

To work with search results in XML format, you need a basic understanding of XML and XSLT.

Learn More about the Search Protocol

For complete information about the Search Protocol and the XML results format, refer to the Search
Protocol Reference
.

Writing Applications with the Feeds Protocol

The Feeds Protocol enables you to write a custom application to feed a data source into the Google
Search Appliance for processing, indexing, and serving. You can also use a feed to remove content from
the index.

Using a publicly available tool, called the GSA Feed Manager (

http://code.google.com/p/

gsafeedmanager/

), can help with feeding data to the GSA. This application can alleviate issues that you

might have with creating a feed client.

Useful Knowledge for Writing a Feed Client

To write your own feed client, you need knowledge of the following technologies:

HTTP—Hypertext Transfer Protocol

XML—Extensible Markup Language