beautypg.com

Custom parameters, Ulang, Wc_mc – Google Search Appliance Protocol Reference User Manual

Page 21

background image

Google Search Appliance: Search Protocol Reference

Request Format

21

As an example, if the result URLs contain files whose names are in Chinese characters and the ud
parameter is set to 1, the Chinese characters appear. If the ud parameter is set to 0, the Chinese
characters are escaped.

Default value:

When a search request includes the proxystylesheet parameter, the default value for ud is 1 and
cannot be modified.

When the search request does not include the proxystylesheet parameter, the default value for
ud is 0 and the value can be modified.

ulang

Gets the user's browser language. The user can specify this search parameter. If it is not specified, it
takes the value from HTTP headers in the received search request. XSLT uses this parameter to translate
titles and snippets into the user's browser language.

Note: A similar parameter, inlang, is for GSA internal use only.

wc

Specifies the number of wildcard expansions for the wildcard expression. Takes values in the range of 0-
1000, where 0 disables wildcard search.

For example, the wildcard term go* expands into any word that begins with the pattern "go." If wc=3,
then the search expands to include at most 3 expanded terms.

Default value: 200

wc_mc

Specifies whether or not the search appliance considers all words with * as wildcard terms. Valid values
are:

1--Consider all words with * as wildcard terms

0--To use a wildcard term, the user must type the full wildcard expression: wildcard:pattern*

Default value: 1

For more information, see

“Wildcard Search.”

Custom Parameters

In addition to the “Search Parameters” on page 10, you can also define custom parameters in a search
request. The search appliance returns custom parameters and their values in the search results.

For security reasons, all space characters in a custom parameter are replaced by an underscore (_). For
example:

http://search.customer.com/search?q=customer+query
&site=collection
&client=collection
&output=xml_no_dtd
&myparam=test+this