@resistdesign/voltra
    Preparing search index...

    Type Alias LossyWriter

    Writer interface for lossy postings.

    type LossyWriter = {
        addLossyPosting(
            token: string,
            indexField: string,
            docId: DocId,
        ): Promise<void>;
        removeLossyPosting(
            token: string,
            indexField: string,
            docId: DocId,
        ): Promise<void>;
    }
    Index

    Methods

    • Add a lossy posting for a token.

      Parameters

      • token: string

        Token to add.

      • indexField: string

        Field name the token was indexed under.

      • docId: DocId

        Document id to associate.

      Returns Promise<void>

      Promise resolved when the posting is written.

    • Remove a lossy posting for a token.

      Parameters

      • token: string

        Token to remove.

      • indexField: string

        Field name the token was indexed under.

      • docId: DocId

        Document id to disassociate.

      Returns Promise<void>

      Promise resolved when the posting is removed.