The
updateCrawls task updates one or more existing crawl
configurations with a new crawl configuration. The task does not create new
crawl configurations. It updates existing crawl configurations with changes.
The syntax for this task is:
cas-cmd updateCrawls -f CrawlConfig.xml [-h HostName] [-p PortNumber] [-l true|false]
Where:
-f(or--file) 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, inCAS\workspace\conf(on Windows) orCAS/workspace/conf(on UNIX). If the property is not set, the value then defaults to8500. 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
This task does not create a new crawl. The task throws an exception if you attempt to update a crawl that does not already exist.
To update 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 specifyupdateCrawlswith the-for--file_nameflag, and the absolute path to the crawl configuration file.Note
This task name is case sensitive.
Example 10. Example of updating crawls
C:\Endeca\CAS\<version>\bin>cas-cmd updateCrawls -f C:\tmp\newCrawlConfig.xml Updated crawl FileCrawl

