Use the CasCrawler.createCrawl() method to create a new crawl of any type (file system, CMS crawl, record store merger, or custom data source).

The syntax of the method is:

CasCrawler.createCrawl(CrawlConfig crawlConfig)

The crawlConfig parameter is a CrawlConfig object that has the configuration settings of the crawl.

To create a new crawl:

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

To catch these exceptions, use a try block when you issue the method.

If the new crawl is successfully created, it can be started with the CasCrawler.startCrawl() method.


Copyright © Legal Notices