API Reference / API Parameters / minWordSizefor1Typo
Jan. 07, 2019

minWordSizefor1Typo

Type: integer
Engine default: 4
Formerly: minWordSizeForApprox1
Parameter syntax
'minWordSizefor1Typo' => min_word_size

Can be used in these methods:

About this parameter

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

Examples

Set default min word size to allow 1 typo

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

Did you find this page helpful?