@resistdesign/voltra
    Preparing search index...

    Type Alias ExactReader

    Reader interface for exact token positions.

    type ExactReader = {
        loadExactPositions(
            token: string,
            indexField: string,
            docId: DocId,
        ): Promise<number[] | undefined>;
    }
    Index

    Methods

    • Load exact positions for a token in a document.

      Parameters

      • token: string

        Token to load positions for.

      • indexField: string

        Field name the token was indexed under.

      • docId: DocId

        Document id containing the token.

      Returns Promise<number[] | undefined>

      Positions array or undefined if not present.