Related queries, Updating keymatch settings – Google Search Appliance Administrative API Developers Guide: Protocol User Manual
Page 50

Google Search Appliance: Administrative API Developer’s Guide: Protocol
50
Updating KeyMatch Settings
To change KeyMatch settings, send an authenticated PUT request to the following URL:
http://Search_Appliance:8000/feeds/keymatch/Front_End
The following example appends KeyMatch settings:
<?xml version=’1.0’ encoding=’UTF-8’?>
<entry xmlns=’http://www.w3.org/2005/Atom’
xmlns:gsa=’http://schemas.google.com/gsa/2007’>
<gsa:content name=’updateMethod’>append</gsa:content>
<gsa:content name=’newLines’>
image,KeywordMatch,http://images.google.com/,Google Image Search
video,KeywordMatch,http://www.youtube.com/,Youtube
rss feed,PhraseMatch,http://www.google.com/reader,Reader
</gsa:content>
</entry>
The following example updates KeyMatch settings:
<?xml version=’1.0’ encoding=’UTF-8’?>
<entry xmlns=’http://www.w3.org/2005/Atom’
xmlns:gsa=’http://schemas.google.com/gsa/2007’>
<gsa:content name=’updateMethod’>update</gsa:content>
<gsa:content name=’startLine’>0</gsa:content>
<gsa:content name=’originalLines’>
image,KeywordMatch,http://images.google.com/,Google Image Search
video,KeywordMatch,http://www.youtube.com/,Youtube rss
feed,PhraseMatch,http://www.google.com/reader,Reader
</gsa:content>
<gsa:content name=’newLines’>
,,,
video,KeywordMatch,http://video.google.com/,Video Search
rss feed,PhraseMatch,http://www.example.com/,RSS example
</gsa:content>
</entry>
Note: To delete a KeyMatch setting, specify a line as three commas (,,,).
The following example replaces a KeyMatch setting:
<?xml version=’1.0’ encoding=’UTF-8’?>
<entry xmlns=’http://www.w3.org/2005/Atom’
xmlns:gsa=’http://schemas.google.com/gsa/2007’>
<gsa:content name=’updateMethod’>replace</gsa:content>
<gsa:content name=’newLines’>
image,KeywordMatch,http://images.google.com/,Google Image Search
video,KeywordMatch,http://www.youtube.com/,Youtube
rss feed,PhraseMatch,http://www.google.com/reader,Reader
</gsa:content>
</entry>
Related Queries
Retrieve or update related queries on a search appliance using the synonym feed. (Related queries are
also known as synonyms.)