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.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
, 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 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
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
<install path>
\CAS\<version>\bin<install path>
/CAS/<version>/binType
cas-cmd.bat
(for Windows), orcas-cmd.sh
(for UNIX) and specifyupdateCrawls
with the-f
or--file_name
flag, 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