setTypoTolerance method
TypoTolerance
Controls whether typo tolerance is enabled and how it is applied.
Usage notes:
- Algolia never returns records with more than 2 typos.
- If you use getRankingInfo, you can retrieve the number of typos for each result. Note that you could see 3 typos even with only 2 mistyped letters. This is because Algolia counts a typo on the first letter as 2 typos.
- Enabling typoTolerance by setting it to true, min or strict also enables
splitting and concatenation
. typoTolerance: true|false|'min'|'strict'
Source: Learn more
Implementation
AlgoliaQuery setTypoTolerance(dynamic value) {
assert(value != null);
assert(!_parameters.containsKey('typoTolerance'));
return _copyWithParameters(<String, dynamic>{'typoTolerance': value});
}