attributesToSnippet property

  1. @JsonKey(name: r'attributesToSnippet')
List<String>? attributesToSnippet
final

Attributes for which to enable snippets. Attribute names are case-sensitive. Snippets provide additional context to matched words. If you enable snippets, they include 10 words, including the matched word. The matched word will also be wrapped by HTML tags for highlighting. You can adjust the number of words with the following notation: ATTRIBUTE:NUMBER, where NUMBER is the number of words to be extracted.

Implementation

@JsonKey(name: r'attributesToSnippet')
final List<String>? attributesToSnippet;