Google Search Appliance Administrative API Developers Gui Instrukcja Użytkownika Strona 20

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 55
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 19
Google Search Appliance: Administrative API Developer’s Guide: .NET 20
Retrieve an individual OneBox module’s log information from a search appliance as follows:
// Send the request and print the response
GsaEntry myEntry = myService.GetEntry("onebox",ONEBOX_NAME);
Console.WriteLine("OneBox Log: " + myEntry.GetGsaContent("logContent"));
Note: You can only retrieve OneBox log entries individually.
Deleting a OneBox Module
Delete a OneBox module from a search appliance as follows:
myService.DeleteEntry("onebox", ONEBOX_NAME);
Pause or Resume Crawl
Check crawl status, pause the crawl, or resume the crawl.
Retrieving Crawl Status
Retrieve the status of crawl as follows:
// Send the request and print the response
GsaEntry myEntry = myService.GetEntry("command", "pauseCrawl");
Console.WriteLine("Pause Crawl: " + myEntry.GetGsaContent("pauseCrawl"));
Pausing or Resuming Crawl
Pause or resume a crawl as follows:
// Create an entry to hold properties to update
GsaEntry updateEntry = new GsaEntry();
// Add properties to updateEntry
updateEntry.AddGsaContent("pauseCrawl", "0");
updateEntry.AddGsaContent("doNotCrawlURLs", "http://frequent/");
// Send the request
myService.UpdateEntry("command", "pauseCrawl", updateEntry);
Property Description
pauseCrawl
Indicates:
1
if crawl is paused,
0
if crawling is occurring.
Przeglądanie stron 19
1 2 ... 15 16 17 18 19 20 21 22 23 24 25 ... 54 55

Komentarze do niniejszej Instrukcji

Brak uwag