beautypg.com

Restricting search results by file type, Restricting search results by meta tag, Value type input parameters – Google Search Appliance Creating the Search Experience User Manual

Page 56

background image

Google Search Appliance: Creating the Search Experience

Best Practices

56

Suppose you have created a front end for users in Switzerland. You want to restrict search results for
this front end to the country's three official languages, German, French, and Italian. You might create a
language filter for the Switzerland front end with these languages selected. When end users in
Switzerland perform a search, only results in the selected languages appear.

When the search appliance receives a language-restricted search request for which there are no results
in the languages specified by a filter, it displays search results in all languages. If search users in
Switzerland perform searches for which there are no results in German, French, or Italian, the users see
results in other languages that are represented in the indexed content.

You can also create a filter with the Filters tab to display results for pages in any language.

Restricting Search Results by File Type

The search appliance can crawl many file types. You can use a file type filter to restrict results by file
type. For a list of file types that the search appliance can crawl, click Help Center > More Information >
Crawling and Indexing
in the Admin Console.

Suppose you have created a front end for mediacompany.com's sales staff. The only documents that
interest the sales staff are in Portable Document Format (.pdf) or Microsoft PowerPoint (.ppt) format.
You can create a file type filter that serves only these file types in the sales staff front end. When
members of the sales staff perform a search, only results of the selected file types appear.

Restricting Search Results by Meta Tag

You can use meta tag filters to restrict results by meta tags and meta tag values.

The site www.mediacompany.com sells DVDs worldwide. Most DVDs are encoded by region. For example,
DVDs encoded for region 1 (Canada, the United States, Bermuda, the Cayman Islands, and U.S.
territories) play only on region 1 players.

On the website, each DVD has a product page that includes a meta tag indicating its region, as shown in
the following example.

Suppose you have created a front end for users in region 1. You can restrict search results to products
for region 1 only. You might create a meta tag filter for the region 1 front end so that only documents
with CONTENT=region_1 appear. When end users in region 1 perform a search, only results for DVDs
that are playable in region 1 appear.

Value Type Input Parameters

You can also filter results by the values of the results' meta tags using the requiredfields and
partialfields input parameters in a search query. For information about these input parameters, refer
to the Search Protocol Reference.

If you set meta tag filters in the front end (using the Meta Tag Filter area), the search appliance
appends these settings to the search query as requiredfields and partialfields input parameters. If
you set meta tag filters in both the front end and in requiredfields and partialfields input parameters,
the front end settings overwrite any input parameters that you have added to the search query.