Skip to main content
The highlightPreTag parameter defines the HTML tag inserted before the matching text in highlighted attributes. It works in combination with highlightPostTag, which marks the end of the highlighted portion.

Usage

  • Set an empty string ("") to fallback to the default tag.
  • To turn off highlighting, remove the searchable attribute with the attributesToHighlight parameter.

Examples

Set default tag

Current API clients

Current API clients

Last modified on May 19, 2026