post_collection_create_script

Background

This option specifies the location of the script to execute after a collection has been created. Note that only a single script path will be accepted; specifying additional arguments or a shell literal will result in an error.

After a collection is created, the script will be called with the following arguments:

collection_name

Name of the collection that is being created.

Setting the key

Set this configuration key in the server configuration.

Use the configuration key editor to add or edit the post_collection_create_script key, and set the value. This can be set to any valid String value.

Default value

There’s no collection creation hook by default.

Examples

Call a specific hook script after a collection has been created.

post_collection_create_script=$SEARCH_HOME/bin/my-collection-create-hook.pl

See also