@grepvine/sdk
    Preparing search index...

    Interface DocumentInput

    One document of Documents.putMany.

    Text (a string, or bytes that are valid UTF-8) travels in batches; other content, or text over 16 MiB, is stored on its own.

    interface DocumentInput {
        content: string | Blob | Uint8Array<ArrayBufferLike>;
        ifMatch?: string;
        ifNoneMatch?: boolean;
        key: string;
        metadata?: Record<string, string | number | boolean | Date | MetadataValue>;
    }
    Index
    content: string | Blob | Uint8Array<ArrayBufferLike>
    ifMatch?: string

    Store the document only if it still has this revision.

    ifNoneMatch?: boolean

    Store the document only if it does not exist.

    key: string
    metadata?: Record<string, string | number | boolean | Date | MetadataValue>

    Fields to store with the document: strings, numbers (whole numbers are stored as integers), booleans, dates, or values tagged as { type, value }.