The syntax of the method is:
IasCrawler.startCrawl(CrawlId crawlId, CrawlMode crawlMode)
The
crawlId parameter is a
CrawlId object that has the crawl ID set. The
crawlMode parameter is one of the following
CrawlMode data types:
- CrawlMode.FULL_CRAWL
performs a full crawl and creates a crawl history.
- CrawlMode.INCREMENTAL_CRAWL
performs an incremental crawl and updates the crawl history. There are several
cases in which the
CrawlMode automatically switches over from
INCREMENTAL_CRAWL to run a
FULL_CRAWL. A full crawl runs in the following
cases:
- If a crawl has not
been run before.
- If the document
conversion option has changed - either by being enabled or disabled.
- If the repository
properties have changed.
- If any filters have
been modified, added, or removed.
- If any seeds have been
removed.
- If you are writing
records to a Record Store instance that contains no generations.
This method does not return a value.
To start a crawl: