Skip to main content

ResultHighlight

Home > @backstage/plugin-search-common > ResultHighlight

Metadata for result relevant document fields with matched terms highlighted via wrapping in associated pre/post tags. The UI is expected to parse these field excerpts by replacing wrapping tags with applicable UI elements for rendering.

Signature:

export interface ResultHighlight 

Properties

PropertyModifiersTypeDescription
fields{ [field: string]: string; }
postTagstringPostfix tag for wrapping terms to be highlighted.
preTagstringPrefix tag for wrapping terms to be highlighted.