public class ReactiveSearchIndexManager extends Object
ReactiveSearchIndexManager
allows to manage search index structures in a couchbase cluster.Constructor and Description |
---|
ReactiveSearchIndexManager(AsyncSearchIndexManager asyncIndexManager) |
Modifier and Type | Method and Description |
---|---|
Mono<Void> |
allowQuerying(String name)
Allows querying against an index.
|
Mono<Void> |
allowQuerying(String name,
AllowQueryingSearchIndexOptions options)
Allows querying against an index.
|
Flux<JsonObject> |
analyzeDocument(String name,
JsonObject document)
Allows to see how a document is analyzed against a specific index.
|
Flux<JsonObject> |
analyzeDocument(String name,
JsonObject document,
AnalyzeDocumentOptions options)
Allows to see how a document is analyzed against a specific index.
|
Mono<Void> |
disallowQuerying(String name)
Disallows querying against an index.
|
Mono<Void> |
disallowQuerying(String name,
DisallowQueryingSearchIndexOptions options)
Disallows querying against an index.
|
Mono<Void> |
dropIndex(String name)
Drops an index.
|
Mono<Void> |
dropIndex(String name,
DropSearchIndexOptions options)
Drops an index.
|
Mono<Void> |
freezePlan(String name)
Freeze the assignment of index partitions to nodes.
|
Mono<Void> |
freezePlan(String name,
FreezePlanSearchIndexOptions options)
Freeze the assignment of index partitions to nodes.
|
Flux<SearchIndex> |
getAllIndexes()
Fetches all indexes from the server.
|
Flux<SearchIndex> |
getAllIndexes(GetAllSearchIndexesOptions options)
Fetches all indexes from the server.
|
Mono<SearchIndex> |
getIndex(String name)
Fetches an index from the server if it exists.
|
Mono<SearchIndex> |
getIndex(String name,
GetSearchIndexOptions options)
Fetches an index from the server if it exists.
|
Mono<Long> |
getIndexedDocumentsCount(String name)
Retrieves the number of documents that have been indexed for an index.
|
Mono<Long> |
getIndexedDocumentsCount(String name,
GetIndexedSearchIndexOptions options)
Retrieves the number of documents that have been indexed for an index.
|
Mono<Void> |
pauseIngest(String name)
Pauses updates and maintenance for an index.
|
Mono<Void> |
pauseIngest(String name,
PauseIngestSearchIndexOptions options)
Pauses updates and maintenance for an index.
|
Mono<Void> |
resumeIngest(String name)
Resumes updates and maintenance for an index.
|
Mono<Void> |
resumeIngest(String name,
ResumeIngestSearchIndexOptions options)
Resumes updates and maintenance for an index.
|
Mono<Void> |
unfreezePlan(String name)
Unfreeze the assignment of index partitions to nodes.
|
Mono<Void> |
unfreezePlan(String name,
UnfreezePlanSearchIndexOptions options)
Unfreeze the assignment of index partitions to nodes.
|
Mono<Void> |
upsertIndex(SearchIndex index)
Creates, or updates, an index.
|
Mono<Void> |
upsertIndex(SearchIndex index,
UpsertSearchIndexOptions options)
Creates, or updates, an index.
|
public ReactiveSearchIndexManager(AsyncSearchIndexManager asyncIndexManager)
public Mono<SearchIndex> getIndex(String name, GetSearchIndexOptions options)
name
- the name of the search index.public Flux<SearchIndex> getAllIndexes(GetAllSearchIndexesOptions options)
public Mono<Long> getIndexedDocumentsCount(String name, GetIndexedSearchIndexOptions options)
name
- the name of the search index.public Flux<JsonObject> analyzeDocument(String name, JsonObject document, AnalyzeDocumentOptions options)
name
- the name of the search index.document
- the document to be analyzed.public Mono<Void> upsertIndex(SearchIndex index, UpsertSearchIndexOptions options)
index
- the index definition including name and settings.public Mono<Void> dropIndex(String name, DropSearchIndexOptions options)
name
- the name of the search index.public Mono<Void> pauseIngest(String name, PauseIngestSearchIndexOptions options)
name
- the name of the search index.public Mono<Void> resumeIngest(String name, ResumeIngestSearchIndexOptions options)
name
- the name of the search index.public Mono<Void> allowQuerying(String name, AllowQueryingSearchIndexOptions options)
name
- the name of the search index.public Mono<Void> disallowQuerying(String name, DisallowQueryingSearchIndexOptions options)
name
- the name of the search index.public Mono<Void> freezePlan(String name, FreezePlanSearchIndexOptions options)
name
- the name of the search index.public Mono<Void> unfreezePlan(String name, UnfreezePlanSearchIndexOptions options)
name
- the name of the search index.public Mono<SearchIndex> getIndex(String name)
name
- the name of the search index.public Flux<SearchIndex> getAllIndexes()
public Mono<Long> getIndexedDocumentsCount(String name)
name
- the name of the search index.public Flux<JsonObject> analyzeDocument(String name, JsonObject document)
name
- the name of the search index.document
- the document to be analyzed.public Mono<Void> upsertIndex(SearchIndex index)
index
- the index definition including name and settings.public Mono<Void> dropIndex(String name)
name
- the name of the search index.public Mono<Void> pauseIngest(String name)
name
- the name of the search index.public Mono<Void> resumeIngest(String name)
name
- the name of the search index.public Mono<Void> allowQuerying(String name)
name
- the name of the search index.public Mono<Void> disallowQuerying(String name)
name
- the name of the search index.public Mono<Void> freezePlan(String name)
name
- the name of the search index.Copyright © 2020 Couchbase, Inc.. All rights reserved.