- Type:
list<string> - Default:
null(all searchable attributes) - Scope:
settings,search
Usage
- By default, all searchable attributes are highlighted.
- The special value
*may be used to highlight all attributes. - Pass an empty array (
[]) to turn off highlighting. - Algolia highlights the first 50,000 characters of the whole result set (5,000 logograms for CJK languages). This limit prevents impacting the user experience by ensuring a fast response time even with large results.
- When highlighting is enabled, each hit in the response contains a
_highlightResultobject. - When enabled, each hit includes a
_highlightResultobject with metadata about the matches.
_highlightResult
Examples
Set default list of attributes to highlight
Current API clients
Current API clients
Legacy API clients
Legacy API clients
Make all attributes highlighted by default
Current API clients
Current API clients
Legacy API clients
Legacy API clients
Override list of attributes to highlight for the current search
Current API clients
Current API clients
Legacy API clients
Legacy API clients