IBM Support

Using the esadmin startCrawl command to start crawlers in a specific mode

Question & Answer


Question

When the esadmin startCrawl command starts a data source crawler, the crawler automatically looks for new, modified, and deleted documents. Is it possible to start the crawler in another mode, such as a full crawl or a crawl of new and modified documents only?

Answer

Restriction: This information applies to data source crawlers only. It does not apply to the Web crawler.

The following command starts a data source crawler to crawl new, modified, and deleted documents:


esadmin sessionID startCrawl


Or, specifying -options 0 explicitly will start the crawler with new, modified and deleted documents mode also:


esadmin sessionID startCrawl -options 0


To start a data source crawler in a different mode, use the -options option with the command.

Examples:
To start a data source crawler and crawl new and modified documents only, enter the following command:


esadmin sessionID startCrawl -options 3


To start a data source crawler and run a full crawl, enter the following command:


esadmin sessionID startCrawl -options 2


Starting from OmniFind Enterprise Edition Version 9.1, new crawlers(Windows Agent crawler, FileNet P8 crawler and MS SharePoint crawler) are introduced. For those crawlers, you need to specify additional options as follows:


esadmin test.ADAPTER_44003 startCrawl -options 0 -ts0 132090320716400011590320842


Where:

  • test.ADAPTER_44003 is session ID of a crawler
  • 132090320716400011590320842 is crawlspace ID or target space.

You can find crawlspace ID as crawlspace element in ES_NODE_ROOT/master_config/<collection id>.<crawler id>/crawler_config.xml file as follows, for example:


<crawlspace id="132090320716400011590320842" name="g:\temp\data" crawlable="true" node="true">


If you want to specify multiple targets, specify several ts options such as -ts0 xxx -ts1 yyy -ts2 zzz.

[{"Product":{"code":"SS5SQ7","label":"OmniFind Enterprise Edition"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Not Applicable","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.1;8.5;8.4","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
17 June 2018

UID

swg21388926