Google Search Appliance Administrative API Developers Gui Bedienungsanleitung Seite 46

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 55
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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
Seitenansicht 45
1 2 ... 41 42 43 44 45 46 47 48 49 50 51 ... 54 55

Kommentare zu diesen Handbüchern

Keine Kommentare