@resistdesign/voltra
    Preparing search index...

    Type Alias DocTokenReader

    Reader interface for checking token existence in documents.

    type DocTokenReader = {
        hasDocToken(
            docId: DocId,
            indexField: string,
            token: string,
        ): Promise<boolean>;
    }
    Index

    Methods

    Methods

    • Check if a document has a specific token.

      Parameters

      • docId: DocId

        Document id to check.

      • indexField: string

        Field name the token was indexed under.

      • token: string

        Token value to check.

      Returns Promise<boolean>

      True when the token exists for the document.