Skip to main content

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 _highlightResult object.
  • When enabled, each hit includes a _highlightResult object with metadata about the matches.

_highlightResult

Examples

Set default list of attributes to highlight

Current API clients

Make all attributes highlighted by default

Current API clients

Current API clients

Last modified on May 19, 2026