Updating remove urls and relative oneboxes, Inserting remove urls and relative oneboxes – Google Search Appliance Administrative API Developers Guide: Protocol User Manual
Page 45
Google Search Appliance: Administrative API Developer’s Guide: Protocol
45
The following result is an entry that includes current individual front end values for a search appliance:
<?xml version=’1.0’ encoding=’UTF-8’?>
<entry xmlns=’http://www.w3.org/2005/Atom’
xmlns:gsa=’http://schemas.google.com/gsa/2007’>
<id>http://gsa:8000/feeds/frontend/default_frontend</id>
<updated>2008-12-15T16:21:26.012Z</updated>
<link rel=’self’ type=’application/atom+xml’
href=’http://gsa:8000/feeds/frontend/default_frontend’/>
<link rel=’edit’ type=’application/atom+xml’
href=’http://gsa:8000/feeds/frontend/default_frontend’/>
<gsa:content name=’entryID’>default_frontend</gsa:content>
<gsa:content name=’frontendOnebox’>oneboxone,oneboxtwo</gsa:content>
<gsa:content name=’removeUrls’>http://www.example.com/</gsa:content>
</entry>
Updating Remove URLs and Relative OneBoxes
To update the remove URLs and relative OneBoxes that are associated with a front end for a search
appliance, send an authenticated PUT request to the frontend feed URL:
http://Search_Appliance:8000/feeds/frontend/Front_End
The following example updates the values for remove URLs and relative OneBox modules for a front
end:
<?xml version=’1.0’ encoding=’UTF-8’?>
<entry xmlns=’http://www.w3.org/2005/Atom’
xmlns:gsa=’http://schemas.google.com/gsa/2007’>
<id>http://gsa:8000/feeds/frontend/default_frontend</id>
<gsa:content name=’entryID’>default_frontend</gsa:content>
<gsa:content name=’frontendOnebox’>oneboxtwo</gsa:content>
<gsa:content name=’removeUrls’>http://www.example2.com/</gsa:content>
</entry>
Inserting Remove URLs and Relative OneBoxes
To insert a front end and remove URLs for a search appliance, send an authenticated POST request to
the frontend feed URL:
http://Search_Appliance:8000/feeds/frontend
The following example specifies a URL pattern to remove from an index for the frontend_one front
end:
<?xml version=’1.0’ encoding=’UTF-8’?>
<entry xmlns=’http://www.w3.org/2005/Atom’
xmlns:gsa=’http://schemas.google.com/gsa/2007’>
<id>http://gsa:8000/feeds/frontend/frontend_one</id>
<gsa:content name=’entryID’>frontend_one</gsa:content>
<gsa:content name=’removeUrls’>http://www.example3.com/</gsa:content>
</entry>
Note: When inserting a new front end, the frontendOnebox property is not supported.