prorm API Reference
    Preparing search index...

    Interface IndexDocumentOptions

    Options accepted by indexDocument().

    interface IndexDocumentOptions {
        opType?: OpType;
        refresh?: Refresh;
        routing?: string;
    }
    Index
    opType?: OpType

    'index' (default; overwrite) or 'create' (fail if the ID already exists).

    refresh?: Refresh

    Refresh policy for making the write visible to search immediately.

    routing?: string

    Route the document to a specific shard.