Google Search Appliance Administrative API Developers Gui Manuale Utente Pagina 19

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 55
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 18
Google Search Appliance: Administrative API Developer’s Guide: .NET 19
The properties for retrieving a OneBox are as follows:
Updating OneBox Module Settings
Update the OneBox settings for a search appliance as follows—in this example three results are
requested and the timeout is set to 2000 milliseconds.
// Create an entry to hold properties to update
GsaEntry updateEntry = new GsaEntry();
// Add properties for the OneBox settings to updateEntry
updateEntry.AddGsaContent("maxResults", "3");
updateEntry.AddGsaContent("timeout", "2000");
// Send the request
myService.UpdateEntry("config", "oneboxSetting", updateEntry);
OneBox Modules Retrieve and Delete
Retrieve and delete OneBox modules from the search appliance using the
onebox
feed.
Note: Inserting a new OneBox module, updating an existing OneBox module, and retrieving a detailed
configuration of a OneBox module are not supported by this API.
Retrieving OneBox Module Information
Retrieve information about all the OneBox modules from a search appliance using the
onebox
feed:
// Send the request and print the response
GsaFeed myFeed = myService.GetFeed("onebox");
foreach(GsaEntry myEntry in myFeed.Entries) {
// Get information on each myEntry
Console.WriteLine("OneBox Name: " + myEntry.GetGsaContent("entryID"));
}
Note: Because detailed information about the OneBox configuration not supported by this API, the
onebox
feed provides only OneBox module names.
Property Description
maxResults
Maximum number of results.
timeout
OneBox response timeout in milliseconds.
Property Description
logContent
The logs content of OneBox logs.
Vedere la pagina 18
1 2 ... 14 15 16 17 18 19 20 21 22 23 24 ... 54 55

Commenti su questo manuale

Nessun commento