beautypg.com

Search parameters, Access, As_dt – Google Search Appliance Protocol Reference User Manual

Page 10

background image

Google Search Appliance: Search Protocol Reference

Request Format

10

This request returns the first 10 results that match the search query terms “bill” and “material”:

q=bill+material&output=xml&client=test&site=operations&access=p

This request returns results numbered 11-15 that match the same query terms and collection as
example 1. As specified by the proxystylesheet parameter, the results are rendered in the custom
HTML output format defined by the front end named “test.”

q=bill+material&start=10&num=5&output=xml_no_dtd&proxystylesheet=test
&client=test&site=operations&access=p

Search Parameters

This section lists the valid name-value pairs that can be used in a search request and describes how
these parameters modify the search results.

All search requests must include the parameters site, client, q, and output. All parameter values
must be URL-encoded (see “Appendix B: URL Encoding” on page 107), except where otherwise noted.

access

Specifies whether to search public content, secure content, or both.

Possible values for the access parameter are:

Default value: p

as_dt

Modifies the as_sitesearch parameter as follows:

For example, to exclude results, use as_dt=e.

Default value: i

Value

Description

p

search only public content

s

search only secure content

a

search all content, both public and secure

Value

Modification

i

Include only results in the web directory specified by as_sitesearch

e

Exclude all results in the web directory specified by as_sitesearch