beautypg.com

As_epq, As_eq, As_filetype – Google Search Appliance Protocol Reference User Manual

Page 11: As_ft

background image

Google Search Appliance: Search Protocol Reference

Request Format

11

as_epq

Adds the specified phrase to the search query in parameter q.

For example, to add the terms “hello there” use as_epq=hello there

This parameter has the same effect as using the phrase special query term (see “Phrase Search” on
page 28).

Default value: Empty string

as_eq

Excludes the specified terms from the search results.

For example, to filter out results that contain the term “deprecated,” use as_eq=deprecated

This parameter has the same effect as using the exclusion (-) special query term (see “Exclusion” on
page 26).

Default value: Empty string

as_filetype

Specifies a file format to include or exclude in the search results. Modified by the as_ft parameter. For
a list of possible values, see “File Type Filtering” on page 27.

For example, to include only pdf files in results, use as_filetype=pdf

Default value: Empty string

as_ft

Modifies the as_filetype parameter to specify filetype inclusion and exclusion options. The values for
as_ft are:

For example, to add the special query term filetype:, use as_ft=i

Query is the string that is included in the response’s q element. Both as_filetype and as_ft are also
returned in the response’s PARAM elements.

Default value: Empty string

Value

Description

i

Adds the special query term filetype: to the query followed by the value of
as_filetype.

e

Adds the special query term -filetype: to the query followed by the value of
as_filetype.