beautypg.com

Query suggestion, Query suggestion blacklist – Google Search Appliance Administrative API Developers Guide: Protocol User Manual

Page 53

background image

Google Search Appliance: Administrative API Developer’s Guide: Protocol

53

The following example replaces all related queries:


xmlns:gsa=’http://schemas.google.com/gsa/2007’>
replace

airplane,aircraft
google,googol
stock,security

Query Suggestion

There are two features for working with query suggestions:

“Query Suggestion Blacklist” on page 53

“Query Suggestion Refresh” on page 54

Query Suggestion Blacklist

The query suggestion blacklist supports the /suggest feature described in the “Query Suggestion Service
/suggest Protocol” chapter of the Search Protocol Reference. This feature uses the suggest feed to
retrieve and update the query suggestion blacklist entries.

The query suggestion blacklist supports the regular expressions in the re2 library (

http://

code.google.com/p/re2/wiki/Syntax

). If you want specify an exact match, you need to use the following

syntax:

^the_word_to_match$

Retrieving Query Suggestion Blacklist Information

Retrieve query suggestion blacklist information as follows:

GET request
URL: http://Search_Appliance:8000/feeds/suggest/suggestBlacklist

Updating Query Suggestion Blacklist Entries

Property

Description

suggestBlacklist

Content of the suggest blacklist file.