Alpha (auto-completion)


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

The value should be between 0 and 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 options is relevant only if suggestions are sorted by score (sort=0)

Default value

alpha: '0.5'


To give priority to shorter auto-completion suggestions:

alpha: '0.12'

© 2015- Squiz Pty Ltd