API Reference / API Parameters / minWordSizefor1Typo
Type: integer
Engine default: 4
Formerly: minWordSizeForApprox1
Parameter syntax
'minWordSizefor1Typo' => min_word_size

Can be used in these methods:
search, setSettings, browseObjects, searchForFacetValues, generateSecuredApiKey, addApiKey, updateApiKey

About this parameter# A

Minimum number of characters a word in the query string must contain to accept matches with 1 typo.

Examples# A

Set default min word size to allow 1 typo#

1
2
3
$index->setSettings([
  'minWordSizefor1Typo' => 4
]);

Override default min word size to allow 1 typo for the current search#

1
2
3
$results = $index->search('query', [
  'minWordSizefor1Typo' => 2
]);
Did you find this page helpful?
PHP v3