auto-completion.alpha

Background

This parameter adjusts the balance between length and relevancy for auto-completion suggestion.

The value should be within the range of 0-1.

A lower value will give priority to shorter suggestions, whereas a higher value will give priority to more relevant suggestions regardless of their length.

This option is relevant only if suggestions are sorted by score (auto-completion.sort=3) and only applies to simple auto-completion.

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 auto-completion.alpha key, and set the value. This can be set to any valid Double value.

Default value

auto-completion.alpha=0.5

Examples

To give priority to shorter auto-completion suggestions:

auto-completion.alpha=0.12