Backstage
    Preparing search index...

    Interface Result<TDocument>

    interface Result<TDocument extends SearchDocument> {
        document: TDocument;
        highlight?: ResultHighlight;
        rank?: number;
        type: string;
    }

    Type Parameters

    Index

    Properties

    document: TDocument

    The raw value of the document, as indexed.

    highlight?: ResultHighlight

    Optional result highlight. Useful for improving the search result display/experience.

    rank?: number

    Optional result rank, where 1 is the first/top result returned. Useful for understanding search effectiveness in analytics.

    type: string

    The "type" of the given document. See: DocumentCollatorFactory."type"