Call the CasCrawler.startCrawl() method to start a crawl.

The syntax of the method is:

CasCrawler.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:

This method does not return a value.

To start a crawl:

If the CasCrawler.startCrawl() method fails, it throws an exception:

As shown in step 3, use a try block to catch these exceptions.


Copyright © Legal Notices