setRestrictHighlightAndSnippetArrays method
RestrictHighlightAndSnippetArrays
Restrict highlighting and snippeting to items that matched the query.
Impact on the response:
- When false, all items are highlighted/snippeted.
- When true, only items that matched at least partially are highlighted/snippeted
Source: Learn more
Implementation
AlgoliaQuery setRestrictHighlightAndSnippetArrays({bool enable = true}) {
assert(!_parameters.containsKey('restrictHighlightAndSnippetArrays'));
return _copyWithParameters(
<String, dynamic>{'restrictHighlightAndSnippetArrays': enable});
}