Skip to main content

Result

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

Signature:

export interface Result<TDocument extends SearchDocument> 

Properties

PropertyModifiersTypeDescription
documentTDocumentThe raw value of the document, as indexed.
highlight?ResultHighlight(Optional) Optional result highlight. Useful for improving the search result display/experience.
rank?number(Optional) Optional result rank, where 1 is the first/top result returned. Useful for understanding search effectiveness in analytics.
typestringThe "type" of the given document. See: DocumentCollatorFactory.type