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

couchbase
    Preparing search index...

    Class AnalyticsIndexManager

    AnalyticsIndexManager provides an interface for performing management operations against the analytics service of the cluster.

    Index

    Methods

    • Creates a new dataset.

      Parameters

      • bucketName: string

        The name of the bucket to create this dataset of.

      • datasetName: string

        The name of the new dataset.

      • Optionaloptions: CreateAnalyticsDatasetOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>

    • Creates a new dataverse.

      Parameters

      • dataverseName: string

        The name of the dataverse to create.

      • Optionaloptions: CreateAnalyticsDataverseOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>

    • Creates a new index.

      Parameters

      • datasetName: string

        The name of the dataset to create this index on.

      • indexName: string

        The name of index to create.

      • fields: { [key: string]: string }

        A map of fields that the index should contain.

      • Optionaloptions: CreateAnalyticsIndexOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>

    • Drops a previously created dataset.

      Parameters

      • datasetName: string

        The name of the dataset to drop.

      • Optionaloptions: DropAnalyticsDatasetOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>

    • Drops a previously created dataverse.

      Parameters

      • dataverseName: string

        The name of the dataverse to drop.

      • Optionaloptions: DropAnalyticsDataverseOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>

    • Drops a previously created index.

      Parameters

      • datasetName: string

        The name of the dataset containing the index to drop.

      • indexName: string

        The name of the index to drop.

      • Optionaloptions: DropAnalyticsIndexOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>

    • Drops an existing analytics remote link.

      Parameters

      • linkName: string

        The name of the link to drop.

      • dataverseName: string

        The dataverse containing the link to drop.

      • Optionaloptions: DropAnalyticsLinkOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>

    • Returns a list of all pending mutations.

      Parameters

      Returns Promise<{ [k: string]: { [k: string]: number } }>