Thanks to visit codestin.com
Credit goes to docs.couchbase.com

couchbase
    Preparing search index...

    Interface CreateQueryIndexOptions

    interface CreateQueryIndexOptions {
        collectionName?: string;
        deferred?: boolean;
        ignoreIfExists?: boolean;
        numReplicas?: number;
        scopeName?: string;
        timeout?: number;
    }
    Index

    Properties

    collectionName?: string

    Specifies the collection of this index.

    Use CollectionQueryIndexManager instead.

    deferred?: boolean

    Specifies whether this index creation should be deferred until a later point in time when they can be explicitly built together.

    ignoreIfExists?: boolean

    Whether or not the call should ignore the index already existing when determining whether the call was successful.

    numReplicas?: number

    The number of replicas of this index that should be created.

    scopeName?: string

    Specifies the collection scope of this index.

    Use CollectionQueryIndexManager instead.

    timeout?: number

    The timeout for this operation, represented in milliseconds.