beautypg.com

Request format, Request overview, Chapter 2 – Google Search Appliance Protocol Reference User Manual

Page 6

background image

Google Search Appliance: Search Protocol Reference

6

Chapter 2

Request Format

Chapter 2

The information in this section helps you create custom searches for your web site. By using search
parameters, special query terms and filters in your search requests, you can refine and enhance
searches to serve your needs.

This section contains:

“Request Overview” on page 6

“Search Parameters” on page 10

“Query Terms” on page 22

“Filtering” on page 30

“Internationalization” on page 34

“Sorting” on page 36

“Meta Tags” on page 41

“Limitations” on page 51

Request Overview

Using the Google search protocol is as simple as requesting a page from a web server. The Google
search request is a standard HTTP GET or POST command, which returns results in either XML or HTML
format, as specified in the search request.

The search request is a URL that combines the following:

Your Google Search Appliance host name or IP address, which were assigned when the search
appliance was set up

Search interface port (default HTTP serving port: 80 for HTTP and 443 for HTTP over SSL/TLS)

A path describing the search query. The path starts with “/search?”, and is followed by one or more
name-value pairs (input parameters) separated by the ampersand (&) character.

The GET command has a 2KB limit on query strings. To submit longer query strings, use the POST
command, as described in “Using the POST Command” on page 7.