Name | Synopsis | Description | Options | Examples | Exit Status | See Also
create-search-event <connect_options> [--echo|-e] [--no-prompt|-Q] [--verbose|-v] [--pattern|-P pattern] [--encoding|-g encoding] [--no-subdirs|-S] ((--time|-t hh:mm [--month|-m 1-12] [--day-of-week|-k sun/mon/tue/wed/thu/fri/sat] [--day-of-month|-d 1-31]) | --interval|-r 60-86400(seconds)) [--no-enabled|-n] --config|-c config-name --vs|-s vs-name --collection|-O name --command|-C add-documents|reindex
Use this command to create a new search event. You can schedule tasks to be performed on collections at regular intervals.
For connect_options description, see help(1).
Specify this option to print this command on the standard output before executing. This option also prints the default value for all the non-mandatory options that you do not provide in the command.
If you specify this option, wadm will not prompt you for passwords while executing this command. Use this option if you have defined all passwords in a password file and specified the file using the --password-file connect_option.
Specify this option to display a verbose output.
Specify a time when this search event is scheduled.
Specify the day of the month when this search event is scheduled. The range of values is 1–31.
Specify the day of the week when this search event is scheduled. The values can be Sun, Mon, Tue, Wed, Thu, Fri or Sat.
Specify the time interval, in seconds, at which this search event will occur. The range of values is 60–86400.
Specify the month when this search event is scheduled. The range of values is 1 to 12.
Specify this option to disable the search event at runtime.
Specify the character encoding for the documents to be re-indexed. The default is ISO-8859-1. The indexing engine tries to determine the encoding of HTML documents from the embedded meta tag.
If you specify this option, sub directories of the document root will not be searched.
Specify the wild card pattern of the documents.
Specify the task the search event should execute. The value can be add-documents or reindex. The value add-documents adds files to an existing collection and reindex re-indexes the specified collection.
Specify the name of the configuration for which you want to create the event.
Specify the name of the virtual server.
Specify the name of the collection for which you need to schedule an event.
wadm create-search-event --user=admin --host=serverhost --password-file=../admin.passwd --port=8989 --ssl=true --no-prompt --rcfile=null --config=config1 --time=10:10 --command=add-documents --collection=collection1 |
The following exit values are returned:
command executed successfully
error in executing the command
help(1), delete-search-event(1), list-search-events(1), disable-search-event(1), enable-search-event(1)
Name | Synopsis | Description | Options | Examples | Exit Status | See Also