ui.modern.curator.query-parameter-pattern

Background

This setting controls which URL parameters basic curator triggers will trigger against, by setting a regular expression which matches the desired parameters.

The following triggers are affected by this setting:

  • AllQueryWordsTrigger

  • ExactQueryTrigger

  • QueryRegularExpressionTrigger

  • QuerySubstringTrigger

Where multiple parameters are matched, the parameter names will be sorted (according to Java’s string sorting rules), and their values will be joined (separated by spaces) into a single against which the trigger will be tested.

Setting the key

Set this configuration key in the results page (preferred) or search package configuration.

Use the configuration key editor to add or edit the ui.modern.curator.query-parameter-pattern key, and set the value. This can be set to any valid String value.

Default value

ui.modern.curator.query-parameter-pattern=^query$

This default setting causes curator to trigger only on the value of the query parameter.

Examples

To match any parameter ending with query, use the following:

ui.modern.curator.query-parameter-pattern=.*query$

To match all parameters in the URL, use the following:

ui.modern.curator.query-parameter-pattern=.*
This will include parameters such as collection and profile. The value for each matched parameter will be combined into a single string for the trigger to match against. For example calling /s/search?collection=c&special=s&profile=p&query=q will return c p q s value. Note the reordering based on the parameter name sort order.

See also