beautypg.com

Exporting query suggestions – Google Search Appliance Creating the Search Experience User Manual

Page 77

background image

Google Search Appliance: Creating the Search Experience

Best Practices

77

For example, suppose a user starts typing “Google Search Appliance” in the search box. Query
suggestions causes the term to auto-complete before the user finishes typing it. Alternative terms that
narrow the search also appear in a menu below the search box. For example, for this search, terms that
appear might include “Google Search Appliance training,” “Google Search Appliance documentation,”
“Google Search Appliance Forum,” and other similar terms. Query suggestions can include user results
(see “Providing User Results” on page 75), which are displayed in italic font style. The user can execute a
search by selecting one of the terms.

To provide query suggestions:

1.

Choose Serving > Front Ends.

The Front Ends page appears.

2.

Create a new front end or select an existing front end from the Current Front Ends list and click
Edit.

3.

Under Page Layout Helper, select the Search Box section.

4.

Check the Enable auto- completion in search box check box.

5.

Click Save Page Layout Code.

Query suggestions are created by using the terms entered in previous searches. Each query suggestion
entry is tagged under a unique front end and collection pair based on the previous searches. Query
suggestion request must be made against the same front end and collection pair to get suggestion
results.

The search appliance automatically refreshes query suggestions every 24 hours, so it might be a day
before a new query suggestion is available. However, you can manually trigger a refresh of query
suggestions by toggling suggestion off and on again for the frontend.

To refresh query suggestions:

1.

Uncheck the Enable auto-completion in search box check box.

2.

Click Save Page Layout Code.

3.

Recheck the Enable auto-completion in search box check box.

4.

Click Save Page Layout Code.

Exporting Query Suggestions

You can see which query suggestions the search appliance is using by exporting them. When you export
query suggestions, the search appliance creates a file that contains an inventory of all query
suggestions. Using the options on this page, you can export query suggestions for:

Collections—All collections or just a selected collection

Front ends—All front ends or just a selected front end

You can also select one of the following options for the format of the exported query suggestions file:

xml—Provides a structured inventory of query suggestions

txt—Provides an unstructured inventory of query suggestions, with one suggestion per line