Google Search Appliance Creating the Search Experience User Manual
Page 60
Google Search Appliance: Creating the Search Experience
Best Practices
60
2.
If the file will contain accented characters and you have not already checked your editor's ability to
save a file with UTF-8 encoding, do so now. As an example, if you are using Notepad, do this:
•
From the File menu, choose Save As.
•
Check that the Save options include Encoding, as well as Name and File Type.
•
Pull down the Encoding menu and choose UTF-8.
3.
Edit the file as follows:
•
Put one directive on each line, using the formats described under Entry format 1 and Entry
format 2, below.
•
Use only alphanumeric characters and spaces, substituting spaces for hyphens. For example,
instead of entering “pro- democracy,” enter “pro democracy.” The results will include the
hyphenated version of the term. Each term can consist of multiple words separated by spaces;
the maximum number of words for each term is 4.
•
Specify any number of synonyms for a particular term. There is no limit to the number of
expansions in a query.
•
Use the pound sign (#) to start a comment line.
4.
Save the file. If the file has accented characters, save it with UTF-8 encoding.
Entry format 1: term1 operator term2
In this format:
•
term1 consists of one word or multiple words that are separated by single spaces.
•
term2 consists of one word or multiple words that are separated by single spaces. operator is one of
the following:
•
= Specifies that the expansion is bi-directional. The appliance expands a search query for term1
or term2 by adding the other term.
•
> Causes the appliance to add term2 when a search query contains term1.
Examples:
ebu = education
business unit
tbu = telecomm business unit
telecom business unit = telecomm business unit
partner > indirect sales
A query where the search term is ebu is expanded to include additional documents that contain the
phrase educational business unit. A query where the search term in educational business unit
is expanded to include additional documents that contain the term ebu. Notice that the two queries,
ebu and educational business unit, are not equivalent. Also, a query where the search term is a
phrase (enclosed by quotation marks), such as "educational business unit," is not expanded.
Entry format 2: {term, term, ...}
In this format:
•
The curly brackets are required.
•
Each term in the list will be used to expand queries for each other term.
•
Up to 32 terms are permitted.
•
Terms can contain space characters but they cannot contain commas.
•
A minimum of two terms is required.