- Type:
enum<string>
- Default:
attribute
- Scope:
settings,search
- Deprecated name:
enableExactOnSingleWordQuery, useQueryEqualsOneAttributeInRanking
exactOnSingleWordQuery
parameter controls how the Exact ranking criterion is evaluated when the query contains only one word.
Options
attribute
The Exact criterion is applied when the query exactly matches the entire value of an attribute.
none
The Exact ranking criterion is ignored on single-word queries.
word
The Exact criterion is applied when the query word is found exactly in the record.
The word must be at least three characters long and must not be a stop word.
Only exact matches will be highlighted. Partial or prefix matches will not be.
By default, Algolia matches query terms at the beginning of words in your records (prefix matching). For alternatives, see Match queries in the middle or end of words.
Example
Current API clients
Current API clients
Legacy API clients
Legacy API clients