API Reference / API Parameters / disableTypoToleranceOnWords
Type: list of strings
Engine default: []
Parameter syntax
'disableTypoToleranceOnWords' => [
  'word',
  ...
]

Can be used in these methods:

About this parameter

A list of words which require exact matches.

Turning off typo tolerance for this list of words is useful, for example, for acronyms like “mysql,” “php,” or “mamp.”

Splitting and concatenation are also turned off for the specified words.

There’s no limit to the number of words in the list, but having many words slows down calls to getSettings. This can make the Algolia dashboard slower and less responsive.

Examples

Create a list of words which require exact matches (wheel and 1X2BCD in this example).

1
2
3
4
5
6
$index->setSettings([
  'disableTypoToleranceOnWords' => [
    'wheel',
    '1X2BCD'
  ]
]);
Did you find this page helpful?