Google Search Appliance Administrative API Developers Gui Manual do Utilizador Página 34

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 56
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 33
Google Search Appliance: Administrative API Developer’s Guide: Java 34
Updating the Output Format XSLT Stylesheet
Update the output format stylesheet information in a search appliance as follows:
// Create an entry to hold properties to update
GsaEntry updateEntry = new GsaEntry();
updateEntry.setId("default_frontend");
// The language parameter is passed as part of
// the entry because we cannot use a query parameter
updateEntry.addGsaContent("language", "en");
// Indicate that the XSLT stylesheet has default values
updateEntry.addGsaContent("isDefaultLanguage, "1");
// Add this line to update the style sheet content
updateEntry.addGsaContent("styleSheetContent", "{my new style sheet XSLT}");
// Or add this line to restore the stylesheet content to
// the default, which is mutually exclusive from the previous line
updateEntry.addGsaContent("restoreDefaultFormat", "1");
// Send the request and print the response
myClient.updateEntry("outputFormat", "default_frontend", updateEntry);
System.out.println("Output Format: " +
updateEntry.getGsaContent("outputFormat"));
System.out.println("Default Front End: " +
updateEntry.getGsaContent("default_frontend"));
KeyMatch Settings
KeyMatch settings let you promote specific web pages on your site. The following parameters let you
find KeyMatches by search, and specify a starting line number and the number of lines to access.
Parameter Description
query
A query string to perform a full text search. For example, if you set
computer
in
the
query
parameter, then you get all KeyMatch settings that contain the word
computer
.
startLine
The starting line number of a result, default value is 0.
maxLines
The number of result lines in a response, default value is 50 lines.
Vista de página 33
1 2 ... 29 30 31 32 33 34 35 36 37 38 39 ... 55 56

Comentários a estes Manuais

Sem comentários