couchbase
    Preparing search index...

    Class SearchIndexManager

    SearchIndexManager provides an interface for managing the search indexes on the cluster.

    Index

    Methods

    • Enables querying of an index.

      Parameters

      • indexName: string

        The name of the index to enable querying for.

      • Optionaloptions: AllowSearchQueryingOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>

    • Performs analysis of a specific document by an index.

      Parameters

      • indexName: string

        The name of the index to use for the analysis.

      • document: any

        The document to analyze.

      • Optionaloptions: AnalyzeSearchDocumentOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<any>

        A node-style callback to be invoked after execution.

      Returns Promise<any>

    • Disables querying of an index.

      Parameters

      • indexName: string

        The name of the index to disable querying for.

      • Optionaloptions: DisallowSearchQueryingOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>

    • Drops an index.

      Parameters

      • indexName: string

        The name of the index to drop.

      • Optionaloptions: DropSearchIndexOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>

    • Freezes the indexing plan for execution of queries.

      Parameters

      • indexName: string

        The name of the index to freeze the plan of.

      • Optionaloptions: FreezeSearchPlanOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>

    • Returns the number of documents that have been indexed.

      Parameters

      • indexName: string

        The name of the index to return the count for.

      • Optionaloptions: GetSearchIndexedDocumentsCountOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<number>

        A node-style callback to be invoked after execution.

      Returns Promise<number>

    • Pauses the ingestion of documents into an index.

      Parameters

      • indexName: string

        The name of the index to pause.

      • Optionaloptions: PauseSearchIngestOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>

    • Resumes the ingestion of documents into an index.

      Parameters

      • indexName: string

        The name of the index to resume.

      • Optionaloptions: ResumeSearchIngestOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>

    • Unfreezes the indexing plan for execution of queries.

      Parameters

      • indexName: string

        The name of the index to freeze the plan of.

      • Optionaloptions: UnfreezeSearchPlanOptions

        Optional parameters for this operation.

      • Optionalcallback: NodeCallback<void>

        A node-style callback to be invoked after execution.

      Returns Promise<void>