Google Search Appliance Administrative API Developers Gui Manuel d'utilisateur Page 46

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 55
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 45
Google Search Appliance: Administrative API Developer’s Guide: .NET 46
A search log entry with
logContent
, if content is ready, is returned.
Dictionary<string, string> queries = new Dictionary<string, string>();
queries.Add("query","User");
queries.Add("startLine","1");
queries.Add("maxLine","10");
GsaEntry entry = myService.QueryEntry("searchLog", "bbb@default_collection",
queries);
Console.WriteLine("Entry Name: " + entry.GetGsaContent("entryID"));
Console.WriteLine("Report State: " + entry.GetGsaContent("reportState"));
Console.WriteLine("Report Creation Date: " +
entry.GetGsaContent("reportCreationDate"));
Console.WriteLine("Report Date: " + entry.GetGsaContent("reportDate"));
Console.WriteLine("Is Final: " + entry.GetGsaContent("isFinal"));
string status = entry.GetGsaContent("reportState");
if (status.Equals("2") || status.Equals("3")) {
Console.WriteLine("Log Content: " + entry.GetGsaContent("logContent"));
Console.WriteLine("To Line: " + entry.GetGsaContent("toLine"));
Console.WriteLine("From Line: " + entry.GetGsaContent("fromLine"));
Console.WriteLine("Total Lines: " + entry.GetGsaContent("totalLines"));
}
Updating a Search Log
Update the search log status and get search log content by sending an authenticated
PUT
request to the
search log entry of the
searchLog
feed. No properties are required.
GsaEntry updateEntry = new GsaEntry();
myService.UpdateEntry("searchLog","bbb@default_collection");
Deleting a Search Log
Update the search log status and get search log content by sending an authenticated
DELETE
request to
a search log entry of the
searchLog
feed.
The search log entry will be deleted.
myService.DeleteEntry("searchLog", "bbb@default_collection");
GSA Unification
The sections that follow describe how to configure the GSA Unification features of the Admin Console:
“Configuring a GSA Unification Network” on page 47
Adding a GSA Unification Node” on page 48
“Retrieving a Node Configuration” on page 48
“Retrieving All Node Configurations” on page 48
“Updating a Node Configuration” on page 49
“Deleting a Node” on page 49
Vue de la page 45
1 2 ... 41 42 43 44 45 46 47 48 49 50 51 ... 54 55

Commentaires sur ces manuels

Pas de commentaire