Class AsyncScopeSearchIndexManager
java.lang.Object
com.couchbase.client.java.manager.search.AsyncScopeSearchIndexManager
The 
AsyncScopeSearchIndexManager allows to manage scope level search indexes.
  
 All management is done with scope FTS indexes.  For global FTS indexes, use @AsyncSearchIndexManager.
- 
Constructor SummaryConstructorsConstructorDescriptionAsyncScopeSearchIndexManager(CoreCouchbaseOps couchbaseOps, AsyncScope scope, AsyncCluster cluster) 
- 
Method SummaryModifier and TypeMethodDescriptionallowQuerying(String name) Allows querying against an index.allowQuerying(String name, AllowQueryingSearchIndexOptions options) Allows querying against an index.analyzeDocument(String name, JsonObject document) Allows to see how a document is analyzed against a specific index.analyzeDocument(String name, JsonObject document, AnalyzeDocumentOptions options) Allows to see how a document is analyzed against a specific index.disallowQuerying(String name) Disallows querying against an index.disallowQuerying(String name, DisallowQueryingSearchIndexOptions options) Disallows querying against an index.Drops an index.dropIndex(String name, DropSearchIndexOptions options) Drops an index.freezePlan(String name) Freeze the assignment of index partitions to nodes.freezePlan(String name, FreezePlanSearchIndexOptions options) Freeze the assignment of index partitions to nodes.Fetches all indexes from the server.getAllIndexes(GetAllSearchIndexesOptions options) Fetches all indexes from the server.Fetches an index from the server if it exists.getIndex(String name, GetSearchIndexOptions options) Fetches an index from the server if it exists.Retrieves the number of documents that have been indexed for an index.getIndexedDocumentsCount(String name, GetIndexedSearchIndexOptions options) Retrieves the number of documents that have been indexed for an index.pauseIngest(String name) Pauses updates and maintenance for an index.pauseIngest(String name, PauseIngestSearchIndexOptions options) Pauses updates and maintenance for an index.resumeIngest(String name) Resumes updates and maintenance for an index.resumeIngest(String name, ResumeIngestSearchIndexOptions options) Resumes updates and maintenance for an index.unfreezePlan(String name) Unfreeze the assignment of index partitions to nodes.unfreezePlan(String name, UnfreezePlanSearchIndexOptions options) Unfreeze the assignment of index partitions to nodes.upsertIndex(SearchIndex index) Creates, or updates, an index.upsertIndex(SearchIndex index, UpsertSearchIndexOptions options) Creates, or updates, an index.
- 
Constructor Details- 
AsyncScopeSearchIndexManagerpublic AsyncScopeSearchIndexManager(CoreCouchbaseOps couchbaseOps, AsyncScope scope, AsyncCluster cluster) 
 
- 
- 
Method Details- 
getIndexFetches an index from the server if it exists.- Parameters:
- name- the name of the search index. This should just be the index name, rather than "bucket.scope.indexName". This should just be the index name, rather than "bucket.scope.indexName".
- Returns:
- a CompletableFuturethe found index once complete.
 
- 
getIndexFetches an index from the server if it exists.- Parameters:
- name- the name of the search index. This should just be the index name, rather than "bucket.scope.indexName".
- Returns:
- a CompletableFuturethe found index once complete.
 
- 
getAllIndexesFetches all indexes from the server.- Returns:
- a CompletableFuturewith all index definitions once complete.
 
- 
getAllIndexesFetches all indexes from the server.- Returns:
- a CompletableFuturewith all index definitions once complete.
 
- 
getIndexedDocumentsCountRetrieves the number of documents that have been indexed for an index.- Parameters:
- name- the name of the search index. This should just be the index name, rather than "bucket.scope.indexName".
- Returns:
- a CompletableFuturewith the indexed documents count once complete.
 
- 
getIndexedDocumentsCountpublic CompletableFuture<Long> getIndexedDocumentsCount(String name, GetIndexedSearchIndexOptions options) Retrieves the number of documents that have been indexed for an index.- Parameters:
- name- the name of the search index. This should just be the index name, rather than "bucket.scope.indexName".
- Returns:
- a CompletableFuturewith the indexed documents count once complete.
 
- 
upsertIndexCreates, or updates, an index.- Parameters:
- index- the index definition to upsert.
- Returns:
- a CompletableFutureindicating request completion.
 
- 
upsertIndexCreates, or updates, an index.- Parameters:
- index- the index definition to upsert.
- Returns:
- a CompletableFutureindicating request completion.
 
- 
dropIndexDrops an index.- Parameters:
- name- the name of the search index. This should just be the index name, rather than "bucket.scope.indexName".
- Returns:
- a CompletableFutureindicating request completion.
 
- 
dropIndexDrops an index.- Parameters:
- name- the name of the search index. This should just be the index name, rather than "bucket.scope.indexName".
- Returns:
- a CompletableFutureindicating request completion.
 
- 
analyzeDocumentAllows to see how a document is analyzed against a specific index.- Parameters:
- name- the name of the search index. This should just be the index name, rather than "bucket.scope.indexName".
- document- the document to analyze.
- Returns:
- a CompletableFuturewith analyzed document parts once complete.
 
- 
analyzeDocumentpublic CompletableFuture<List<JsonObject>> analyzeDocument(String name, JsonObject document, AnalyzeDocumentOptions options) Allows to see how a document is analyzed against a specific index.- Parameters:
- name- the name of the search index. This should just be the index name, rather than "bucket.scope.indexName".
- document- the document to analyze.
- Returns:
- a CompletableFuturewith analyzed document parts once complete.
 
- 
pauseIngestPauses updates and maintenance for an index.- Parameters:
- name- the name of the search index. This should just be the index name, rather than "bucket.scope.indexName".
- Returns:
- a CompletableFutureindicating request completion.
 
- 
pauseIngestPauses updates and maintenance for an index.- Parameters:
- name- the name of the search index. This should just be the index name, rather than "bucket.scope.indexName".
- Returns:
- a CompletableFutureindicating request completion.
 
- 
resumeIngestResumes updates and maintenance for an index.- Parameters:
- name- the name of the search index. This should just be the index name, rather than "bucket.scope.indexName".
- Returns:
- a CompletableFutureindicating request completion.
 
- 
resumeIngestResumes updates and maintenance for an index.- Parameters:
- name- the name of the search index. This should just be the index name, rather than "bucket.scope.indexName".
- Returns:
- a CompletableFutureindicating request completion.
 
- 
allowQueryingAllows querying against an index.- Parameters:
- name- the name of the search index. This should just be the index name, rather than "bucket.scope.indexName".
- Returns:
- a CompletableFutureindicating request completion.
 
- 
allowQueryingAllows querying against an index.- Parameters:
- name- the name of the search index. This should just be the index name, rather than "bucket.scope.indexName".
- Returns:
- a CompletableFutureindicating request completion.
 
- 
disallowQueryingDisallows querying against an index.- Parameters:
- name- the name of the search index. This should just be the index name, rather than "bucket.scope.indexName".
- Returns:
- a CompletableFutureindicating request completion.
 
- 
disallowQueryingpublic CompletableFuture<Void> disallowQuerying(String name, DisallowQueryingSearchIndexOptions options) Disallows querying against an index.- Parameters:
- name- the name of the search index. This should just be the index name, rather than "bucket.scope.indexName".
- Returns:
- a CompletableFutureindicating request completion.
 
- 
freezePlanFreeze the assignment of index partitions to nodes.- Parameters:
- name- the name of the search index. This should just be the index name, rather than "bucket.scope.indexName".
- Returns:
- a CompletableFutureindicating request completion.
 
- 
freezePlanFreeze the assignment of index partitions to nodes.- Parameters:
- name- the name of the search index. This should just be the index name, rather than "bucket.scope.indexName".
- Returns:
- a CompletableFutureindicating request completion.
 
- 
unfreezePlanUnfreeze the assignment of index partitions to nodes.- Parameters:
- name- the name of the search index. This should just be the index name, rather than "bucket.scope.indexName".
- Returns:
- a CompletableFutureindicating request completion.
 
- 
unfreezePlanUnfreeze the assignment of index partitions to nodes.- Parameters:
- name- the name of the search index. This should just be the index name, rather than "bucket.scope.indexName".
- Returns:
- a CompletableFutureindicating request completion.
 
 
-