Output format xslt stylesheet – Google Search Appliance Administrative API Developers Guide: Java User Manual
Page 32

Google Search Appliance: Administrative API Developer’s Guide: Java
32
Inserting Front Ends and Remove URLs
Insert a front end and remove a URL from the search results as follows:
// Create an entry to hold properties to insert
GsaEntry insertEntry = new GsaEntry();
insertEntry.setId(entryUrl);
// Add properties to insertEntry
insertEntry.addGsaContent("entryID", FRONTEND_NAME);
insertEntry.addGsaContent("removeUrls", "http://www.example3.com/");
// Send the request
myClient.insertEntry("frontend", insertEntry);
Deleting a Front End
Delete a front end from the search appliance as follows:
myClient.deleteEntry("frontend", FRONTEND_NAME);
Output Format XSLT Stylesheet
Retrieve and update the XSLT template and other output format-related properties for each language
of each front end using the frontend entry of the outputFormat feed.
Parameter
Description
language
Specify a language for the output format properties that you want to retrieve.
Each front end can contain multiple languages, and each language has its own
output format properties. Each front end + language can have its own XSLT
stylesheet. The language parameter enables you to retrieve and update a
stylesheet for a front end associated with a language.
Administrators who use the Admin Console set the language in their browser
and the Admin Console then displays in that language (if the Admin Console has
been translated into that language). Hence the language parameter for the
outputFormat feed is limited to the values to which the Admin Console is
translated.