public interface ReactiveIndexOperations
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Boolean> |
alias(AliasActions aliasActions)
Executes the given
AliasActions. |
reactor.core.publisher.Mono<Boolean> |
create()
Create an index.
|
reactor.core.publisher.Mono<Boolean> |
create(Map<String,Object> settings)
Create an index with the specified settings.
|
reactor.core.publisher.Mono<Boolean> |
create(Map<String,Object> settings,
Document mapping)
Create an index for given settings and mapping.
|
reactor.core.publisher.Mono<Document> |
createMapping()
Creates the index mapping for the entity this IndexOperations is bound to.
|
reactor.core.publisher.Mono<Document> |
createMapping(Class<?> clazz)
Creates the index mapping for the given class
|
reactor.core.publisher.Mono<Settings> |
createSettings()
Creates the index settings for the entity this IndexOperations is bound to.
|
reactor.core.publisher.Mono<Settings> |
createSettings(Class<?> clazz)
Creates the index settings from the annotations on the given class
|
reactor.core.publisher.Mono<Boolean> |
createWithMapping()
Create an index with the settings and mapping defined for the entity this IndexOperations is bound to.
|
reactor.core.publisher.Mono<Boolean> |
delete()
Delete an index.
|
reactor.core.publisher.Mono<Boolean> |
deleteTemplate(DeleteTemplateRequest deleteTemplateRequest)
Deletes an index template using the legacy Elasticsearch interface (@see
https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates-v1.html)
|
default reactor.core.publisher.Mono<Boolean> |
deleteTemplate(String templateName)
Deletes an index template using the legacy Elasticsearch interface (@see
https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates-v1.html)
|
reactor.core.publisher.Mono<Boolean> |
exists()
checks if an index exists
|
reactor.core.publisher.Mono<Boolean> |
existsTemplate(ExistsTemplateRequest existsTemplateRequest)
Checks if an index template exists using the legacy Elasticsearch interface (@see
https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates-v1.html)
|
default reactor.core.publisher.Mono<Boolean> |
existsTemplate(String templateName)
Checks if an index template exists using the legacy Elasticsearch interface (@see
https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates-v1.html)
|
reactor.core.publisher.Mono<Map<String,Set<AliasData>>> |
getAliases(String... aliasNames)
gets information about aliases
|
reactor.core.publisher.Mono<Map<String,Set<AliasData>>> |
getAliasesForIndex(String... indexNames)
gets information about aliases
|
IndexCoordinates |
getIndexCoordinates()
get the current
IndexCoordinates. |
default reactor.core.publisher.Flux<IndexInformation> |
getInformation()
Gets the
IndexInformation for the indices defined by getIndexCoordinates(). |
reactor.core.publisher.Flux<IndexInformation> |
getInformation(IndexCoordinates index)
Gets the
IndexInformation for the indices defined by getIndexCoordinates(). |
reactor.core.publisher.Mono<Document> |
getMapping()
Get mapping for the index targeted defined by this
ReactiveIndexOperations |
default reactor.core.publisher.Mono<Settings> |
getSettings()
get the settings for the index
|
reactor.core.publisher.Mono<Settings> |
getSettings(boolean includeDefaults)
get the settings for the index
|
reactor.core.publisher.Mono<TemplateData> |
getTemplate(GetTemplateRequest getTemplateRequest)
gets an index template using the legacy Elasticsearch interface.
|
default reactor.core.publisher.Mono<TemplateData> |
getTemplate(String templateName)
gets an index template using the legacy Elasticsearch interface.
|
default reactor.core.publisher.Mono<Boolean> |
putMapping()
Writes the mapping to the index for the class this IndexOperations is bound to.
|
default reactor.core.publisher.Mono<Boolean> |
putMapping(Class<?> clazz)
Creates the index mapping for the given class and writes it to the index.
|
reactor.core.publisher.Mono<Boolean> |
putMapping(reactor.core.publisher.Mono<Document> mapping)
writes a mapping to the index
|
reactor.core.publisher.Mono<Boolean> |
putTemplate(PutTemplateRequest putTemplateRequest)
Creates an index template using the legacy Elasticsearch interface (@see
https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates-v1.html)
|
reactor.core.publisher.Mono<Void> |
refresh()
Refresh the index(es) this IndexOperations is bound to
|
reactor.core.publisher.Mono<Boolean> create()
Mono signalling successful operation completion or an error if eg.
the index already exist.reactor.core.publisher.Mono<Boolean> create(Map<String,Object> settings)
settings - index settingsMono signalling successful operation completion or an error if eg.
the index already exist.reactor.core.publisher.Mono<Boolean> create(Map<String,Object> settings, Document mapping)
settings - the index settingsmapping - the index mappingMono signalling successful operation completion or an error if eg.
the index already exist.reactor.core.publisher.Mono<Boolean> createWithMapping()
Mono signalling successful operation completion or an error if eg.
the index already exist.reactor.core.publisher.Mono<Boolean> delete()
Mono signalling operation completion or an error. If the index does
not exist, a value of false is emitted.reactor.core.publisher.Mono<Boolean> exists()
Mono with the result of exist checkreactor.core.publisher.Mono<Void> refresh()
Mono signalling operation completion.reactor.core.publisher.Mono<Document> createMapping()
reactor.core.publisher.Mono<Document> createMapping(Class<?> clazz)
clazz - the clazz to create a mapping forMono with the mapping documentdefault reactor.core.publisher.Mono<Boolean> putMapping()
reactor.core.publisher.Mono<Boolean> putMapping(reactor.core.publisher.Mono<Document> mapping)
mapping - the Document with the mapping definitionsdefault reactor.core.publisher.Mono<Boolean> putMapping(Class<?> clazz)
clazz - the clazz to create a mapping forreactor.core.publisher.Mono<Document> getMapping()
ReactiveIndexOperationsreactor.core.publisher.Mono<Settings> createSettings()
reactor.core.publisher.Mono<Settings> createSettings(Class<?> clazz)
clazz - the class to create the index settings fromdefault reactor.core.publisher.Mono<Settings> getSettings()
Mono with a Document containing the index settingsreactor.core.publisher.Mono<Settings> getSettings(boolean includeDefaults)
includeDefaults - whether or not to include all the default settingsMono with a Document containing the index settingsreactor.core.publisher.Mono<Boolean> alias(AliasActions aliasActions)
AliasActions.aliasActions - the actions to executereactor.core.publisher.Mono<Map<String,Set<AliasData>>> getAliases(String... aliasNames)
reactor.core.publisher.Mono<Map<String,Set<AliasData>>> getAliasesForIndex(String... indexNames)
reactor.core.publisher.Mono<Boolean> putTemplate(PutTemplateRequest putTemplateRequest)
putTemplateRequest - template request parametersdefault reactor.core.publisher.Mono<TemplateData> getTemplate(String templateName)
templateName - the template namereactor.core.publisher.Mono<TemplateData> getTemplate(GetTemplateRequest getTemplateRequest)
getTemplateRequest - the request parametersdefault reactor.core.publisher.Mono<Boolean> existsTemplate(String templateName)
templateName - the template namereactor.core.publisher.Mono<Boolean> existsTemplate(ExistsTemplateRequest existsTemplateRequest)
existsTemplateRequest - template request parametersdefault reactor.core.publisher.Mono<Boolean> deleteTemplate(String templateName)
templateName - the template namereactor.core.publisher.Mono<Boolean> deleteTemplate(DeleteTemplateRequest deleteTemplateRequest)
deleteTemplateRequest - template request parametersdefault reactor.core.publisher.Flux<IndexInformation> getInformation()
IndexInformation for the indices defined by getIndexCoordinates().IndexInformationreactor.core.publisher.Flux<IndexInformation> getInformation(IndexCoordinates index)
IndexInformation for the indices defined by getIndexCoordinates().IndexInformationIndexCoordinates getIndexCoordinates()
IndexCoordinates. These may change over time when the entity class has a SpEL constructed
index name. When this IndexOperations is not bound to a class, the bound IndexCoordinates are returned.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.