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.host
property 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.port
property incommandline.properties
, in<install path>
\CAS\workspace\conf<install path>
/CAS/workspace/conf8500
. Optional.-l
(or--isPortSsl
) specifies whether to communicate with the service using an HTTPS connection. A value oftrue
uses HTTPS and treats thecom.endeca.itl.cas.server.port
property as an SSL port. A value offalse
uses HTTP and treatscom.endeca.itl.cas.server.port
as a non-SSL port. Specifyfalse
if you enabled redirects from a non-SSL port to an SSL port. Optional.
Note
If you are running
createCrawls
as part of migrating from a previous version of CAS to the current version, thecreateCrawls
task handles updating all aspects of the crawl configuration file.If conflicts arise when running the
createCrawls
task (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
<install path>
\CAS\<version>\bin<install path>
/CAS/<version>/binType
cas-cmd.bat
(for Windows), orcas-cmd.sh
(for UNIX) and specifycreateCrawls
with the-f
or--file_name
flag, 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