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

  • 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 11
Google Search Appliance: Administrative API Developer’s Guide: .NET 12
Crawl Schedule
Retrieve and update the crawl schedule for a search appliance.
Retrieving the Crawl Schedule
Retrieve the crawl mode and get the crawl schedule as follows:
GsaEntry myEntry = myService.GetEntry("config", "crawlSchedule");
Console.WriteLine("Is Scheduled Crawl: " + myEntry.GetGsaContent
("isScheduledCrawl"));
Console.WriteLine("Crawl Schedule: " + myEntry.GetGsaContent("crawlSchedule"));
Updating the Crawl Schedule
Update the crawl schedule or crawl mode as follows:
// Create an entry to hold properties to update
GsaEntry updateEntry = new GsaEntry();
// Add a property to updateEntry
updateEntry.AddGsaContent("isScheduledCrawl", "1");
updateEntry.AddGsaContent("crawlSchedule", "0,0300,360\n2,0000,1200");
// Send the request
myService.UpdateEntry("config", "crawlSchedule", updateEntry);
Crawler Access Rules
Create, retrieve, update, and delete crawler access rules for a search appliance.
Property Description
crawlSchedule
The crawl schedule is only available in scheduled crawl mode. The
value of
crawlSchedule
has the format:
Day,Time,Duration
Where:
Day
is a number representing the days of a week:
0
means Sunday
and
1
means Monday.
Time
is a 24-hour representation of time. The time pertains to the
search appliance and not the computer running the application to
set the value.
Duration
is the representation for the time period in minutes. The
duration cannot be greater than
1440
, which means 24 hours. A
scheduled crawl begins on the values in
Day
and
Time
and
continues for the
Duration
.
isScheduledCrawl
Set to
1
if the search appliance is in scheduled crawl mode or set to
0
if
the search appliance is in continuous crawl mode.
Vue de la page 11
1 2 ... 7 8 9 10 11 12 13 14 15 16 17 ... 54 55

Commentaires sur ces manuels

Pas de commentaire