beautypg.com

Updating related queries – Google Search Appliance Administrative API Developers Guide: Protocol User Manual

Page 52

background image

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

52

The following example retrieves related queries:

xmlns:gsa="http://schemas.google.com/gsa/2007">
http://ent1:8000/feeds/synonym/default_frontend
2008-12-15T06:41:20.954Z

rel="self" type="application/atom+xml"/>

rel="edit" type="application/atom+xml"/>

default_frontend
stock,security
3
google,googol
airplane,aircraft

Updating Related Queries

To change related queries, send an authenticated PUT request to the following URL:

http://Search_Appliance:8000/feeds/synonym/Front_End

The following example appends related queries:


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

airplane,aircraft
google,googol
stock,security

The following example updates related queries:


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

airplane,aircraft
google,googol


airplane,helicopter
,

Note: To delete an existing setting, specify a line as a single comma (,).