auto-completion.sort

Sets the auto completion suggestions sort order.

Key: auto-completion.sort
Type: Integer
Can be set in: profile.cfg, collection.cfg

Description

This parameter sets the auto completion suggestions sort order. It can take 3 values:

  • 0: Suggestions will be sorted by weight, with the most relevant ones in first.

  • 1: Suggestions will be sorted by length, with the shorter ones in first.

  • 2: Suggestions will be sorted alphabetically in ascending order.

  • 3: Suggestions will be sorted by a score calculated by alpha * weight + (1 - alpha) * length_score.

Default Value

The default vis to sort by score.

auto-completion.sort=0

Examples

Sort suggestions by length:

auto-completion.sort=1