@resistdesign/voltra
    Preparing search index...

    Class FullTextDdbWriter

    Write-only DynamoDB helper for indexing documents and token stats.

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Build a token stats write request for a document frequency delta.

      Parameters

      • token: string

        Token value to update stats for.

      • indexField: string

        Field name the token was indexed under.

      • delta: number

        Delta to apply to document frequency.

      Returns Promise<TableWrite | undefined>

      Write request or undefined when no update is needed.

    • Write a document to lossy/exact postings and token stats tables.

      Parameters

      • document: DocumentRecord

        Document record to index.

      • primaryField: string

        Field name used as the document id.

      • indexField: string

        Field name containing the text to index.

      Returns Promise<void>

      Promise resolved once all writes complete.