push.initial-mode

Background

Sets the initial operation mode for the push data source. This is only read the first time a push data source starts, i.e. the first time an editing call is made to the push API.

The `push.initial-mode can be set to the following values:

  • DEFAULT: the push data source can be used to add and delete documents.

  • SLAVE: the push data source is read only.

If the push data source has already been started at least once, you can change the mode by running the following API call:

POST /push-api/v1/collections/test-push2/mode/?mode=<VALUE>

where value is either 'DEFAULT' or 'SLAVE'.

Setting the key

Set this configuration key in the search package or data source configuration.

Use the configuration key editor to add or edit the push.initial-mode key, and set the value. This can be set to any valid RunMode allowed values: DEFAULT, SLAVE or UNKNOWN value.

Examples

Set up a query processor for a push data source before the push data source is started:

push.initial-mode=SLAVE