attributesToHighlight property

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

Attributes to highlight. By default, all searchable attributes are highlighted. Use * to highlight all attributes or use an empty array [] to turn off highlighting. Attribute names are case-sensitive. With highlighting, strings that match the search query are surrounded by HTML tags defined by highlightPreTag and highlightPostTag. You can use this to visually highlight matching parts of a search query in your UI. For more information, see Highlighting and snippeting.

Implementation

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