Crawl schedule, Retrieving a crawl schedule – Google Search Appliance Administrative API Developers Guide: Protocol User Manual

Page 17

Advertising
background image

Google Search Appliance: Administrative API Developer’s Guide: Protocol

17

The following example updates the feeds trusted IP specified in an entry:

<?xml version=’1.0’ encoding=’UTF-8’?>
<entry xmlns=’http://www.w3.org/2005/Atom’

xmlns:gsa=’http://schemas.google.com/gsa/2007’>
<id>http://gsa:8000/feeds/config/feedTrustedIP</id>
<gsa:content name=’entryID’>feedTrustedIP</gsa:content>
<gsa:content name=’trustedIPs’>127.0.0.1</gsa:content>

</entry>

Crawl Schedule

Retrieve and update the crawl schedule of a search using the crawSchedule entry of the config feed.

Retrieving a Crawl Schedule

To check the crawl mode and get the crawl schedule, send an authenticated GET request to the
following URL:

http://Search_Appliance:8000/feeds/config/crawlSchedule

Property

Description

isScheduledCrawl

Displays 1 if the search appliance is in scheduled crawl mode or 0 if the
search appliance is in continuous crawl mode.

You can also change crawl modes by setting 1 for scheduled crawl or 0 for
continuous crawl mode.

crawlSchedule

The schedule of crawl, only available in scheduled crawl mode.

The crawlSchedule value is in format: Day,Time,Duration.

Where:

Day is a number representation for days of a week,

0 means Sunday and 1 means Monday.

Time is 24 hour representation of time.

Duration is the representation for time period in minutes and it
should not be longer than 1440 which mean 24 hours.

A scheduled crawl begins on the Day and Time and continues for the
specified Duration.

Advertising