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

Can be used in these methods:

About this parameter

The minimum number of characters in a query word before typos are considered.

Examples

Set the default minimum character count to allow one typo

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