couchbase
    Preparing search index...

    Class ViewIndexManager

    ViewIndexManager is an interface which enables the management of view indexes on the cluster.

    Since version 4.7.0. Views are deprecated in Couchbase Server 7.0+, and will be removed from a future server version. Views are not compatible with the Magma storage engine. Instead of views, use indexes and queries using the Index Service (GSI) and the Query Service (SQL++).

    Index

    Methods

    • Publishes a development design document to be a production design document. It does this by fetching the design document by the passed name with dev_ appended, and then performs an upsert of the production name (no dev_) with the data which was just fetched.

      Parameters

      • designDocName: string

        The name of the design document to publish.

      • Optionaloptions: PublishDesignDocumentOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>