Google Search Appliance Administrative API Developers Gui Manual de usuario Pagina 32

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 55
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 31
Google Search Appliance: Administrative API Developer’s Guide: .NET 32
Get information about a front end as follows:
// Send a request and print the response
GsaEntry myEntry = myService.GetEntry("frontend", FRONTEND_NAME);
Console.WriteLine("Front End OneBox: " + myEntry.GetGsaContent
("frontendOnebox"));
Console.WriteLine("Remove URLs: " + myEntry.GetGsaContent("removeUrls"));
Updating Remove URLs and a Relative OneBox
Update the URLs to remove from the search results, and update a OneBox module in a front end as
follows:
// Create an entry to hold properties to update
GsaEntry updateEntry = new GsaEntry();
// Add properties to updateEntry
updateEntry.AddGsaContent("frontendOnebox", "oneboxtwo");
updateEntry.AddGsaContent("removeUrls", "http://www.example.com/");
// Send the request
myService.UpdateEntry("frontend", FRONTEND_NAME, updateEntry);
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();
// Add properties to insertEntry
insertEntry.AddGsaContent("entryID", FRONTEND_NAME);
insertEntry.AddGsaContent("removeUrls", "http://www.example3.com/");
// Send the request
myService.InsertEntry("frontend", insertEntry);
Deleting a Front End
Delete a front end from the search appliance as follows:
myService.DeleteEntry("frontend", FRONTEND_NAME);
Vista de pagina 31
1 2 ... 27 28 29 30 31 32 33 34 35 36 37 ... 54 55

Comentarios a estos manuales

Sin comentarios