The
createCrawls task creates and stores named crawls.
The syntax for this task is:
cas-cmd createCrawls -f CrawlConfig.xml [-h HostName] [-p PortNumber] [-l true|false]
Where:
-f(or--file_name) specifies the pathname of the input XML file containing the crawl configuration(s). Required.-h(or--host) specifies the host where the CAS Service is running. If the flag is omitted, the default is the value of thecom.endeca.itl.cas.server.hostproperty incommandline.properties. If the property is not set, the value then defaults tolocalhost. Optional.-p(or--port) specifies the port of the CAS Service. If the flag is omitted, the default is the value of thecom.endeca.itl.cas.server.portproperty incommandline.properties, in(on Windows) or<install path>\CAS\workspace\conf(on UNIX). If the property is not set, the value then defaults to<install path>/CAS/workspace/conf8500. Optional.-l(or--isPortSsl) specifies whether to communicate with the service using an HTTPS connection. A value oftrueuses HTTPS and treats thecom.endeca.itl.cas.server.portproperty as an SSL port. A value offalseuses HTTP and treatscom.endeca.itl.cas.server.portas a non-SSL port. Specifyfalseif you enabled redirects from a non-SSL port to an SSL port. Optional.
Note
If you are running
createCrawlsas part of migrating from a previous version of CAS to the current version, thecreateCrawlstask handles updating all aspects of the crawl configuration file.If conflicts arise when running the
createCrawlstask (such as multiple crawl configurations occuring with the samecrawlId), the utility prompts you to either ignore the listed conflicts and continue creating the rest of the crawls, or to abort the task. If a crawl cannot be created, the CAS Server logs an error and ignores that crawl.When the CAS Server Command-line Utility loads a crawl configuration that contains an empty password property, the user is prompted for a password. If a password is entered incorrectly, the crawl is not saved.
You may add a password to the crawl configuration and update CAS Server with this modified configuration. Or, you may enter the password when prompted by running the task. The password is saved only on the server running the CAS Service.
To create crawls:
Start a command prompt and navigate to
(for Windows), or<install path>\CAS\<version>\bin(for UNIX).<install path>/CAS/<version>/binType
cas-cmd.bat(for Windows), orcas-cmd.sh(for UNIX) and specifycreateCrawlswith the-for--file_nameflag, and the absolute path to the crawl configuration file.Note
This task name is case sensitive.
Example 3. Example of creating crawls
C:\Endeca\CAS\<version>\bin>cas-cmd createCrawls -f C:\tmp\fileCrawlConfig.xml Created crawl FileCrawl

