Back links, Boolean or search, Cached results page – Google Search Appliance Protocol Reference User Manual
Page 24

Google Search Appliance: Search Protocol Reference
Request Format
24
Back Links
The query prefix link: lists web pages that have links to the specified web page. No spaces can come
between link and the web page URL.
The URL pattern for the linked-to web page must appear in Follow and Crawl URL patterns on the
Content Sources > Web Crawl > Start and Block URLs page in the Admin Console. Otherwise, the link
query does not produce any search results. For example, consider the following the query link:http//
www.example.com/child.html. For this query to return any results, www.example.com/ must appear
in Follow and Crawl URL patterns.
No other query terms can be specified when using this special query term. Query terms info, link and
cache ignore collection restrictions that are specified by the site parameter. The search request
parameter as_lq (see “as_lq” on page 12) can also be used to submit a link request.
The query term link: returns 25 results as default but you can configure this number by using the
Search > Search Features > Query Settings page in the Admin Console.
Sample usage:
link:www.google.com
Boolean OR Search
Google search supports the Boolean OR operator. To retrieve pages that include either word A or word B,
use an uppercase OR between terms. The search request parameter as_oq (see “as_oq” on page 12) can
also be used to submit a search for any term in a set of terms.
For additional information on the use of OR, see “Usage Notes” in “Using inmeta to Filter by Meta Tags”
on page 47.
Sample usage:
vacation london OR paris
The OR operator takes precedence over the AND operator, so this example will be treated as:
vacation AND (london OR paris)
Cached Results Page
The query prefix cache: returns the cached HTML version of the specified web document that the
Google search crawled. Note there can be no space between cache: and the web page URL. Words that
appear in the query are highlighted in the cached document.
To use Google’s default cached result display, omit the output parameter in the cache request. To
customize the display of cached results, request XML or Custom HTML output as part of the cache
request and ensure that your parser or stylesheet handles the incoming cache data. Query terms info,
link and cache ignore collection restrictions that are specified by the site parameter. See also the site
parameter (see “site” on page 19).
Sample usage:
cache:www.google.com web