Zoom Search Engine FAQ - Command line optionsQ. How do I use the command line options with the Zoom Indexer?For WindowsThe Zoom Indexer accepts command line parameters if you wish to use it with an automated scheduling program or just to create a convenient shortcut in Windows. The usage definition is: ZoomIndexer [auto-run option] <config-file> [incremental options]
Auto-run options:
You may want to enable saving of the index log to a file when using the above features. This would assist in troubleshooting and determining if an index ran successfully. You can do so from the "Index log" tab of the Configuration window and making sure to use a ZCFG file with this setting enabled. Note that each of these modes are mutually exclusive - you can not run Zoom in more than one mode at once. If you need to schedule an indexing and a report generation at the same time, you will have to run ZoomIndexer twice (once with the indexing option, and once with the report generating option). Incremental indexing optionsThe following command-line options allow you to call upon the incremental indexing features along with the auto-run options. This allows developers to call Zoom to perform these operations via external scripts or applications (eg. you could have a server-side script which calls Zoom to add a new start point to an existing index when a user submits them via a web page). Note that these same options are available from the graphical user interface (under the Index menu).
Notes for MacRunning the Zoom For Mac indexer from the command-line is similar to the Windows method above. The same command-line parameters are available. However, there are some additional parameters required and the path to the executable is different. On the Mac, you need to pass the command line parameters to the ZoomEngine core executable. This would be found in the "/Library/Application Support/Wrensoft/Zoom Search Engine/" folder. You will need to specify the -console parameter as described above. You will also need to specify a -udp parameter for the working user data path. The following is an example of launching the Zoom For Mac executable from the command-line, in Spider Mode with default installation paths. /Library/Application Support/Wrensoft/Zoom Search Engine/ZoomEngine -console -s /Users/ray/Documents/myconfig.zcfg -udp /Users/ray/Library/Application Support/Wrensoft/Zoom Search Engine
This can be used for cron jobs and similar scripting purposes. Please note that if you are entering this into the Terminal, you will need to escape spaces in your folder names with a backward slash, e.g. "\ " so the above would look as follows: /Library/Application\ Support/Wrensoft/Zoom\ Search\ Engine/ZoomEngine -console -s /Users/ray/Documents/myconfig.zcfg -udp /Users/ray/Library/Application\ Support/Wrensoft/Zoom\ Search\ Engine
Note also the User folder name should be changed to your user name (or the user account which Zoom is installed under). The rest of the parameters (including incremental indexing options) are available as described in the Windows section. Notes for LinuxRunning the Zoom For Linux indexer from the command-line is similar to the Windows method above. The same command-line parameters are available. However, there are some additional parameters required. On Linux, you need to pass the command line parameters to the ZoomEngine core executable. This would be found in the same folder as your ZoomIndexer.php page. You will need to specify the -console parameter as described above. The following is an example of launching the Zoom For Linux executable from the command-line, in Spider Mode assuming we are in the folder where Zoom was installed. ./ZoomEngine -console -s myconfig.zcfg
This can be used for cron jobs and similar scripting purposes. The rest of the parameters (including incremental indexing options) are available as described in the Windows section. Return to our Zoom Search Engine Support page |