Class DefaultReactiveElasticsearchClient
java.lang.Object
org.springframework.data.elasticsearch.client.erhlc.DefaultReactiveElasticsearchClient
- All Implemented Interfaces:
ReactiveElasticsearchClient
,ReactiveElasticsearchClient.Cluster
,ReactiveElasticsearchClient.Indices
@Deprecated
public class DefaultReactiveElasticsearchClient
extends Object
implements ReactiveElasticsearchClient, ReactiveElasticsearchClient.Indices, ReactiveElasticsearchClient.Cluster
Deprecated.
since 5.0
A
WebClient
based ReactiveElasticsearchClient
that connects to an Elasticsearch cluster using HTTP.- Since:
- 3.2
- Author:
- Christoph Strobl, Mark Paluch, Peter-Josef Meisch, Huw Ayling-Miller, Henrique Amaral, Roman Puchkovskiy, Russell Parry, Thomas Geese, Brian Clozel, Farid Faoudi, George Popides, Sijia Liu
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.elasticsearch.client.erhlc.ReactiveElasticsearchClient
ReactiveElasticsearchClient.Cluster, ReactiveElasticsearchClient.Indices, ReactiveElasticsearchClient.ReactiveElasticsearchClientCallback<T>, ReactiveElasticsearchClient.Status
-
Constructor Summary
ConstructorDescriptionDefaultReactiveElasticsearchClient
(HostProvider<?> hostProvider) Deprecated.Create a newDefaultReactiveElasticsearchClient
using the givenHostProvider
to obtain server connections.DefaultReactiveElasticsearchClient
(HostProvider<?> hostProvider, RequestCreator requestCreator) Deprecated.Create a newDefaultReactiveElasticsearchClient
using the givenHostProvider
to obtain server connections and the givenRequestCreator
. -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Flux<org.elasticsearch.search.aggregations.Aggregation>
aggregate
(HttpHeaders headers, org.elasticsearch.action.search.SearchRequest searchRequest) Deprecated.Execute the givenSearchRequest
with aggregations against the search API.reactor.core.publisher.Mono<org.elasticsearch.action.bulk.BulkResponse>
bulk
(HttpHeaders headers, org.elasticsearch.action.bulk.BulkRequest bulkRequest) Deprecated.Execute aBulkRequest
against the bulk API.reactor.core.publisher.Mono<Void>
closeIndex
(HttpHeaders headers, org.elasticsearch.action.admin.indices.close.CloseIndexRequest closeIndexRequest) Deprecated.Execute the givenCloseIndexRequest
against the indices API.cluster()
Deprecated.Gain Access to cluster related commands.reactor.core.publisher.Mono<Long>
count
(HttpHeaders headers, org.elasticsearch.action.search.SearchRequest searchRequest) Deprecated.Execute aSearchRequest
against the search API.static ReactiveElasticsearchClient
create
(ClientConfiguration clientConfiguration) Deprecated.Create a newDefaultReactiveElasticsearchClient
givenClientConfiguration
.static ReactiveElasticsearchClient
create
(ClientConfiguration clientConfiguration, RequestCreator requestCreator) Deprecated.static ReactiveElasticsearchClient
create
(HttpHeaders headers, String... hosts) Deprecated.Create a newDefaultReactiveElasticsearchClient
aware of the given nodes in the cluster.reactor.core.publisher.Mono<Boolean>
createIndex
(HttpHeaders headers, org.elasticsearch.action.admin.indices.create.CreateIndexRequest createIndexRequest) Deprecated.Execute the givenCreateIndexRequest
against the indices API.reactor.core.publisher.Mono<Boolean>
createIndex
(HttpHeaders headers, org.elasticsearch.client.indices.CreateIndexRequest createIndexRequest) Deprecated.Execute the givenCreateIndexRequest
against the indices API.reactor.core.publisher.Mono<org.elasticsearch.action.delete.DeleteResponse>
delete
(HttpHeaders headers, org.elasticsearch.action.delete.DeleteRequest deleteRequest) Deprecated.Execute the givenDeleteRequest
against the delete API to remove a document.reactor.core.publisher.Mono<org.elasticsearch.index.reindex.BulkByScrollResponse>
deleteBy
(HttpHeaders headers, org.elasticsearch.index.reindex.DeleteByQueryRequest deleteRequest) Deprecated.Execute aDeleteByQueryRequest
against the delete by query API.reactor.core.publisher.Mono<Boolean>
deleteIndex
(HttpHeaders headers, org.elasticsearch.action.admin.indices.delete.DeleteIndexRequest request) Deprecated.Execute the givenDeleteIndexRequest
against the indices API.reactor.core.publisher.Mono<Boolean>
deleteTemplate
(HttpHeaders headers, org.elasticsearch.action.admin.indices.template.delete.DeleteIndexTemplateRequest deleteIndexTemplateRequest) Deprecated.Execute the givenDeleteIndexTemplateRequest
against the indices API.<T> reactor.core.publisher.Mono<T>
Deprecated.Compose the actual command/s to run against Elasticsearch using the underlyingconnection
.reactor.core.publisher.Mono<Boolean>
exists
(HttpHeaders headers, org.elasticsearch.action.get.GetRequest getRequest) Deprecated.Checks for the existence of a document.reactor.core.publisher.Mono<Boolean>
existsIndex
(HttpHeaders headers, org.elasticsearch.action.admin.indices.get.GetIndexRequest request) Deprecated.Execute the givenGetIndexRequest
against the indices API.reactor.core.publisher.Mono<Boolean>
existsIndex
(HttpHeaders headers, org.elasticsearch.client.indices.GetIndexRequest request) Deprecated.Execute the givenGetIndexRequest
against the indices API.reactor.core.publisher.Mono<Boolean>
existsTemplate
(HttpHeaders headers, org.elasticsearch.client.indices.IndexTemplatesExistRequest indexTemplatesExistRequest) Deprecated.Execute the givenIndexTemplatesExistRequest
against the indices API.reactor.core.publisher.Mono<Void>
flushIndex
(HttpHeaders headers, org.elasticsearch.action.admin.indices.flush.FlushRequest flushRequest) Deprecated.Execute the givenRefreshRequest
against the indices API.reactor.core.publisher.Mono<org.elasticsearch.index.get.GetResult>
get
(HttpHeaders headers, org.elasticsearch.action.get.GetRequest getRequest) Deprecated.Execute the givenGetRequest
against the get API to retrieve a document by id.reactor.core.publisher.Mono<org.elasticsearch.client.GetAliasesResponse>
getAliases
(HttpHeaders headers, org.elasticsearch.action.admin.indices.alias.get.GetAliasesRequest getAliasesRequest) Deprecated.Execute the givenGetAliasesRequest
against the indices API.reactor.core.publisher.Mono<org.elasticsearch.client.indices.GetFieldMappingsResponse>
getFieldMapping
(HttpHeaders headers, org.elasticsearch.client.indices.GetFieldMappingsRequest getFieldMappingsRequest) Deprecated.Execute the givenGetFieldMappingsRequest
against the indices API.reactor.core.publisher.Mono<org.elasticsearch.client.indices.GetIndexResponse>
getIndex
(HttpHeaders headers, org.elasticsearch.client.indices.GetIndexRequest getIndexRequest) Deprecated.Execute the givenGetIndexRequest
against the indices API.reactor.core.publisher.Mono<org.elasticsearch.action.admin.indices.mapping.get.GetMappingsResponse>
getMapping
(HttpHeaders headers, org.elasticsearch.action.admin.indices.mapping.get.GetMappingsRequest getMappingsRequest) Deprecated.reactor.core.publisher.Mono<org.elasticsearch.client.indices.GetMappingsResponse>
getMapping
(HttpHeaders headers, org.elasticsearch.client.indices.GetMappingsRequest getMappingsRequest) Deprecated.Execute the givenGetMappingsRequest
against the indices API.reactor.core.publisher.Mono<org.elasticsearch.action.admin.indices.settings.get.GetSettingsResponse>
getSettings
(HttpHeaders headers, org.elasticsearch.action.admin.indices.settings.get.GetSettingsRequest getSettingsRequest) Deprecated.Execute the givenGetSettingsRequest
against the indices API.reactor.core.publisher.Mono<org.elasticsearch.client.indices.GetIndexTemplatesResponse>
getTemplate
(HttpHeaders headers, org.elasticsearch.client.indices.GetIndexTemplatesRequest getIndexTemplatesRequest) Deprecated.Execute the givenGetIndexTemplatesRequest
against the indices API.reactor.core.publisher.Mono<org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse>
health
(HttpHeaders headers, org.elasticsearch.action.admin.cluster.health.ClusterHealthRequest clusterHealthRequest) Deprecated.Execute the given {ClusterHealthRequest
} against the cluster API.reactor.core.publisher.Mono<org.elasticsearch.action.index.IndexResponse>
index
(HttpHeaders headers, org.elasticsearch.action.index.IndexRequest indexRequest) Deprecated.Execute the givenIndexRequest
against the index API to index a document.indices()
Deprecated.Gain access to index related commands.reactor.core.publisher.Mono<org.elasticsearch.action.main.MainResponse>
info
(HttpHeaders headers) Deprecated.Get the cluster info otherwise provided when sending an HTTP request to port 9200.reactor.core.publisher.Flux<org.elasticsearch.action.get.MultiGetItemResponse>
multiGet
(HttpHeaders headers, org.elasticsearch.action.get.MultiGetRequest multiGetRequest) Deprecated.Execute the givenMultiGetRequest
against the multi-get API to retrieve multiple documents by id.reactor.core.publisher.Mono<Void>
openIndex
(HttpHeaders headers, org.elasticsearch.action.admin.indices.open.OpenIndexRequest request) Deprecated.Execute the givenOpenIndexRequest
against the indices API.reactor.core.publisher.Mono<Boolean>
ping
(HttpHeaders headers) Deprecated.Pings the remote Elasticsearch cluster and emits true if the ping succeeded, false otherwise.reactor.core.publisher.Mono<Boolean>
putMapping
(HttpHeaders headers, org.elasticsearch.action.admin.indices.mapping.put.PutMappingRequest putMappingRequest) Deprecated.Execute the givenPutMappingRequest
against the indices API.reactor.core.publisher.Mono<Boolean>
putMapping
(HttpHeaders headers, org.elasticsearch.client.indices.PutMappingRequest putMappingRequest) Deprecated.Execute the givenPutMappingRequest
against the indices API.reactor.core.publisher.Mono<Boolean>
putTemplate
(HttpHeaders headers, org.elasticsearch.client.indices.PutIndexTemplateRequest putIndexTemplateRequest) Deprecated.Execute the givenPutIndexTemplateRequest
against the indices API.reactor.core.publisher.Mono<Void>
refreshIndex
(HttpHeaders headers, org.elasticsearch.action.admin.indices.refresh.RefreshRequest refreshRequest) Deprecated.Execute the givenRefreshRequest
against the indices API.reactor.core.publisher.Mono<org.elasticsearch.index.reindex.BulkByScrollResponse>
reindex
(HttpHeaders headers, org.elasticsearch.index.reindex.ReindexRequest reindexRequest) Deprecated.Execute the givenReindexRequest
against the reindex API.reactor.core.publisher.Flux<org.elasticsearch.search.SearchHit>
scroll
(HttpHeaders headers, org.elasticsearch.action.search.SearchRequest searchRequest) Deprecated.Execute the givenSearchRequest
against the search scroll API.reactor.core.publisher.Flux<org.elasticsearch.search.SearchHit>
search
(HttpHeaders headers, org.elasticsearch.action.search.SearchRequest searchRequest) Deprecated.Execute the givenSearchRequest
against the search API.reactor.core.publisher.Mono<org.elasticsearch.action.search.SearchResponse>
searchForResponse
(HttpHeaders headers, org.elasticsearch.action.search.SearchRequest searchRequest) Deprecated.Execute the givenSearchRequest
against the search API returning the whole response in one Mono.reactor.core.publisher.Flux<org.elasticsearch.search.SearchHit>
searchTemplate
(HttpHeaders headers, org.elasticsearch.script.mustache.SearchTemplateRequest searchTemplateRequest) Deprecated.Executes aSearchTemplateRequest
against the search template API.void
setHeadersSupplier
(Supplier<HttpHeaders> headersSupplier) Deprecated.reactor.core.publisher.Mono<ReactiveElasticsearchClient.Status>
status()
Deprecated.Get the current clientReactiveElasticsearchClient.Status
.reactor.core.publisher.Mono<String>
submitReindex
(HttpHeaders headers, org.elasticsearch.index.reindex.ReindexRequest reindexRequest) Deprecated.Execute the givenReindexRequest
against the reindex API.reactor.core.publisher.Flux<org.elasticsearch.search.suggest.Suggest>
suggest
(HttpHeaders headers, org.elasticsearch.action.search.SearchRequest searchRequest) Deprecated.Execute the givenSearchRequest
against the search API.reactor.core.publisher.Mono<org.elasticsearch.action.update.UpdateResponse>
update
(HttpHeaders headers, org.elasticsearch.action.update.UpdateRequest updateRequest) Deprecated.Execute the givenUpdateRequest
against the update API to alter a document.reactor.core.publisher.Mono<Boolean>
updateAliases
(HttpHeaders headers, org.elasticsearch.action.admin.indices.alias.IndicesAliasesRequest indicesAliasesRequest) Deprecated.Execute the givenIndicesAliasesRequest
against the indices API.reactor.core.publisher.Mono<ByQueryResponse>
updateBy
(HttpHeaders headers, org.elasticsearch.index.reindex.UpdateByQueryRequest updateRequest) Deprecated.Execute aUpdateByQueryRequest
against the update by query API.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.elasticsearch.client.erhlc.ReactiveElasticsearchClient
aggregate, aggregate, bulk, bulk, count, count, delete, delete, deleteBy, deleteBy, exists, exists, get, get, index, index, info, multiGet, multiGet, ping, reindex, reindex, scroll, search, search, searchForResponse, searchTemplate, searchTemplate, submitReindex, submitReindex, suggest, suggest, update, update, updateBy, updateBy
Methods inherited from interface org.springframework.data.elasticsearch.client.erhlc.ReactiveElasticsearchClient.Cluster
health, health
Methods inherited from interface org.springframework.data.elasticsearch.client.erhlc.ReactiveElasticsearchClient.Indices
closeIndex, closeIndex, createIndex, createIndex, createIndex, deleteIndex, deleteIndex, deleteTemplate, deleteTemplate, existsIndex, existsIndex, existsIndex, existsTemplate, existsTemplate, flushIndex, flushIndex, getAliases, getAliases, getFieldMapping, getFieldMapping, getIndex, getIndex, getMapping, getMapping, getMapping, getSettings, getSettings, getTemplate, getTemplate, openIndex, openIndex, putMapping, putMapping, putMapping, putTemplate, putTemplate, refreshIndex, refreshIndex, updateAliases, updateAliases
-
Constructor Details
-
DefaultReactiveElasticsearchClient
Deprecated.Create a newDefaultReactiveElasticsearchClient
using the givenHostProvider
to obtain server connections.- Parameters:
hostProvider
- must not be null.
-
DefaultReactiveElasticsearchClient
public DefaultReactiveElasticsearchClient(HostProvider<?> hostProvider, RequestCreator requestCreator) Deprecated.Create a newDefaultReactiveElasticsearchClient
using the givenHostProvider
to obtain server connections and the givenRequestCreator
.- Parameters:
hostProvider
- must not be null.requestCreator
- must not be null.
-
-
Method Details
-
create
Deprecated.Create a newDefaultReactiveElasticsearchClient
aware of the given nodes in the cluster.
NOTE If the cluster requires authentication be sure to provide the accordingHttpHeaders
correctly.- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.hosts
- must not be null nor empty!- Returns:
- new instance of
DefaultReactiveElasticsearchClient
.
-
create
Deprecated.Create a newDefaultReactiveElasticsearchClient
givenClientConfiguration
.
NOTE If the cluster requires authentication be sure to provide the accordingHttpHeaders
correctly.- Parameters:
clientConfiguration
- Client configuration. Must not be null.- Returns:
- new instance of
DefaultReactiveElasticsearchClient
.
-
create
public static ReactiveElasticsearchClient create(ClientConfiguration clientConfiguration, RequestCreator requestCreator) Deprecated.Create a newDefaultReactiveElasticsearchClient
givenClientConfiguration
andRequestCreator
.
NOTE If the cluster requires authentication be sure to provide the accordingHttpHeaders
correctly.- Parameters:
clientConfiguration
- Client configuration. Must not be null.requestCreator
- Request creator. Must not be null.- Returns:
- new instance of
DefaultReactiveElasticsearchClient
.
-
setHeadersSupplier
Deprecated. -
ping
Deprecated.Description copied from interface:ReactiveElasticsearchClient
Pings the remote Elasticsearch cluster and emits true if the ping succeeded, false otherwise.- Specified by:
ping
in interfaceReactiveElasticsearchClient
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.- Returns:
- the
Mono
emitting the result of the ping attempt.
-
info
public reactor.core.publisher.Mono<org.elasticsearch.action.main.MainResponse> info(HttpHeaders headers) Deprecated.Description copied from interface:ReactiveElasticsearchClient
Get the cluster info otherwise provided when sending an HTTP request to port 9200.- Specified by:
info
in interfaceReactiveElasticsearchClient
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.- Returns:
- the
Mono
emitting the result of the info request.
-
get
public reactor.core.publisher.Mono<org.elasticsearch.index.get.GetResult> get(HttpHeaders headers, org.elasticsearch.action.get.GetRequest getRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient
Execute the givenGetRequest
against the get API to retrieve a document by id.- Specified by:
get
in interfaceReactiveElasticsearchClient
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.getRequest
- must not be null.- Returns:
- the
Mono
emitting theresult
. - See Also:
-
multiGet
public reactor.core.publisher.Flux<org.elasticsearch.action.get.MultiGetItemResponse> multiGet(HttpHeaders headers, org.elasticsearch.action.get.MultiGetRequest multiGetRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient
Execute the givenMultiGetRequest
against the multi-get API to retrieve multiple documents by id.- Specified by:
multiGet
in interfaceReactiveElasticsearchClient
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.multiGetRequest
- must not be null.- Returns:
- the
Flux
emitting theresult
. - See Also:
-
exists
public reactor.core.publisher.Mono<Boolean> exists(HttpHeaders headers, org.elasticsearch.action.get.GetRequest getRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient
Checks for the existence of a document. Emits true if it exists, false otherwise.- Specified by:
exists
in interfaceReactiveElasticsearchClient
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.getRequest
- must not be null.- Returns:
- the
Mono
emitting true if it exists, false otherwise.
-
index
public reactor.core.publisher.Mono<org.elasticsearch.action.index.IndexResponse> index(HttpHeaders headers, org.elasticsearch.action.index.IndexRequest indexRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient
Execute the givenIndexRequest
against the index API to index a document.- Specified by:
index
in interfaceReactiveElasticsearchClient
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.indexRequest
- must not be null.- Returns:
- the
Mono
emitting theIndexResponse
. - See Also:
-
indices
Deprecated.Description copied from interface:ReactiveElasticsearchClient
Gain access to index related commands.- Specified by:
indices
in interfaceReactiveElasticsearchClient
- Returns:
- access to index related commands.
-
cluster
Deprecated.Description copied from interface:ReactiveElasticsearchClient
Gain Access to cluster related commands.- Specified by:
cluster
in interfaceReactiveElasticsearchClient
- Returns:
- Cluster implementations
-
update
public reactor.core.publisher.Mono<org.elasticsearch.action.update.UpdateResponse> update(HttpHeaders headers, org.elasticsearch.action.update.UpdateRequest updateRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient
Execute the givenUpdateRequest
against the update API to alter a document.- Specified by:
update
in interfaceReactiveElasticsearchClient
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.updateRequest
- must not be null.- Returns:
- the
Mono
emitting theUpdateResponse
. - See Also:
-
delete
public reactor.core.publisher.Mono<org.elasticsearch.action.delete.DeleteResponse> delete(HttpHeaders headers, org.elasticsearch.action.delete.DeleteRequest deleteRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient
Execute the givenDeleteRequest
against the delete API to remove a document.- Specified by:
delete
in interfaceReactiveElasticsearchClient
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.deleteRequest
- must not be null.- Returns:
- the
Mono
emitting theDeleteResponse
. - See Also:
-
count
public reactor.core.publisher.Mono<Long> count(HttpHeaders headers, org.elasticsearch.action.search.SearchRequest searchRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient
Execute aSearchRequest
against the search API.- Specified by:
count
in interfaceReactiveElasticsearchClient
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.searchRequest
- must not be null.- Returns:
- the
Mono
emitting the count result. - See Also:
-
searchTemplate
public reactor.core.publisher.Flux<org.elasticsearch.search.SearchHit> searchTemplate(HttpHeaders headers, org.elasticsearch.script.mustache.SearchTemplateRequest searchTemplateRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient
Executes aSearchTemplateRequest
against the search template API.- Specified by:
searchTemplate
in interfaceReactiveElasticsearchClient
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.searchTemplateRequest
- must not be null.- Returns:
- the
Flux
emittinghits
one by one. - See Also:
-
search
public reactor.core.publisher.Flux<org.elasticsearch.search.SearchHit> search(HttpHeaders headers, org.elasticsearch.action.search.SearchRequest searchRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient
Execute the givenSearchRequest
against the search API.- Specified by:
search
in interfaceReactiveElasticsearchClient
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.searchRequest
- must not be null.- Returns:
- the
Flux
emittinghits
one by one. - See Also:
-
searchForResponse
public reactor.core.publisher.Mono<org.elasticsearch.action.search.SearchResponse> searchForResponse(HttpHeaders headers, org.elasticsearch.action.search.SearchRequest searchRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient
Execute the givenSearchRequest
against the search API returning the whole response in one Mono.- Specified by:
searchForResponse
in interfaceReactiveElasticsearchClient
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.searchRequest
- must not be null.- Returns:
- the
Mono
emitting the wholeSearchResponse
. - See Also:
-
suggest
public reactor.core.publisher.Flux<org.elasticsearch.search.suggest.Suggest> suggest(HttpHeaders headers, org.elasticsearch.action.search.SearchRequest searchRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient
Execute the givenSearchRequest
against the search API.- Specified by:
suggest
in interfaceReactiveElasticsearchClient
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.searchRequest
- must not be null.- Returns:
- the
Flux
emittingsuggestions
one by one.
-
aggregate
public reactor.core.publisher.Flux<org.elasticsearch.search.aggregations.Aggregation> aggregate(HttpHeaders headers, org.elasticsearch.action.search.SearchRequest searchRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient
Execute the givenSearchRequest
with aggregations against the search API.- Specified by:
aggregate
in interfaceReactiveElasticsearchClient
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.searchRequest
- must not be null.- Returns:
- the
Flux
emittingAggregation
one by one. - See Also:
-
scroll
public reactor.core.publisher.Flux<org.elasticsearch.search.SearchHit> scroll(HttpHeaders headers, org.elasticsearch.action.search.SearchRequest searchRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient
Execute the givenSearchRequest
against the search scroll API.
Scroll keeps track ofscrollIds
returned by the server and provides them when requesting more results via_search/scroll
. All bound server resources are freed on completion.- Specified by:
scroll
in interfaceReactiveElasticsearchClient
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.searchRequest
- must not be null.- Returns:
- the
Flux
emittinghits
one by one. - See Also:
-
deleteBy
public reactor.core.publisher.Mono<org.elasticsearch.index.reindex.BulkByScrollResponse> deleteBy(HttpHeaders headers, org.elasticsearch.index.reindex.DeleteByQueryRequest deleteRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient
Execute aDeleteByQueryRequest
against the delete by query API.- Specified by:
deleteBy
in interfaceReactiveElasticsearchClient
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.deleteRequest
- must not be null.- Returns:
- a
Mono
emitting operation response. - See Also:
-
updateBy
public reactor.core.publisher.Mono<ByQueryResponse> updateBy(HttpHeaders headers, org.elasticsearch.index.reindex.UpdateByQueryRequest updateRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient
Execute aUpdateByQueryRequest
against the update by query API.- Specified by:
updateBy
in interfaceReactiveElasticsearchClient
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.updateRequest
- must not be null.- Returns:
- a
Mono
emitting operation response. - See Also:
-
bulk
public reactor.core.publisher.Mono<org.elasticsearch.action.bulk.BulkResponse> bulk(HttpHeaders headers, org.elasticsearch.action.bulk.BulkRequest bulkRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient
Execute aBulkRequest
against the bulk API.- Specified by:
bulk
in interfaceReactiveElasticsearchClient
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.bulkRequest
- must not be null.- Returns:
- a
Mono
emitting operation response. - See Also:
-
reindex
public reactor.core.publisher.Mono<org.elasticsearch.index.reindex.BulkByScrollResponse> reindex(HttpHeaders headers, org.elasticsearch.index.reindex.ReindexRequest reindexRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient
Execute the givenReindexRequest
against the reindex API.- Specified by:
reindex
in interfaceReactiveElasticsearchClient
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.reindexRequest
- must not be null- Returns:
- the
Mono
emitting the response
-
submitReindex
public reactor.core.publisher.Mono<String> submitReindex(HttpHeaders headers, org.elasticsearch.index.reindex.ReindexRequest reindexRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient
Execute the givenReindexRequest
against the reindex API.- Specified by:
submitReindex
in interfaceReactiveElasticsearchClient
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.reindexRequest
- must not be null- Returns:
- the
Mono
emitting the task id
-
execute
public <T> reactor.core.publisher.Mono<T> execute(ReactiveElasticsearchClient.ReactiveElasticsearchClientCallback<T> callback) Deprecated.Description copied from interface:ReactiveElasticsearchClient
Compose the actual command/s to run against Elasticsearch using the underlyingconnection
.Execute
selects an active server from the available ones and retries operations that fail with aConnectException
on another node if the previously selected one becomes unavailable.- Specified by:
execute
in interfaceReactiveElasticsearchClient
- Type Parameters:
T
- the type emitted by the returned Mono.- Parameters:
callback
- thecallback
wielding the actual command to run.- Returns:
- the
Mono
emitting theClientResponse
once subscribed.
-
status
Deprecated.Description copied from interface:ReactiveElasticsearchClient
Get the current clientReactiveElasticsearchClient.Status
.
NOTE the actual implementation might choose to actively check the current cluster state by pinging known nodes.- Specified by:
status
in interfaceReactiveElasticsearchClient
- Returns:
- the actual
ReactiveElasticsearchClient.Status
information.
-
createIndex
public reactor.core.publisher.Mono<Boolean> createIndex(HttpHeaders headers, org.elasticsearch.action.admin.indices.create.CreateIndexRequest createIndexRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient.Indices
Execute the givenCreateIndexRequest
against the indices API.- Specified by:
createIndex
in interfaceReactiveElasticsearchClient.Indices
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.createIndexRequest
- must not be null.- Returns:
- a
Mono
signalling successful operation completion or anerror
if eg. the index already exist. - See Also:
-
createIndex
public reactor.core.publisher.Mono<Boolean> createIndex(HttpHeaders headers, org.elasticsearch.client.indices.CreateIndexRequest createIndexRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient.Indices
Execute the givenCreateIndexRequest
against the indices API.- Specified by:
createIndex
in interfaceReactiveElasticsearchClient.Indices
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.createIndexRequest
- must not be null.- Returns:
- a
Mono
signalling successful operation completion or anerror
if eg. the index already exist. - See Also:
-
closeIndex
public reactor.core.publisher.Mono<Void> closeIndex(HttpHeaders headers, org.elasticsearch.action.admin.indices.close.CloseIndexRequest closeIndexRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient.Indices
Execute the givenCloseIndexRequest
against the indices API.- Specified by:
closeIndex
in interfaceReactiveElasticsearchClient.Indices
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.closeIndexRequest
- must not be null.- Returns:
- a
Mono
signalling operation completion or anerror
if eg. the index does not exist. - See Also:
-
existsIndex
public reactor.core.publisher.Mono<Boolean> existsIndex(HttpHeaders headers, org.elasticsearch.action.admin.indices.get.GetIndexRequest request) Deprecated.Description copied from interface:ReactiveElasticsearchClient.Indices
Execute the givenGetIndexRequest
against the indices API.- Specified by:
existsIndex
in interfaceReactiveElasticsearchClient.Indices
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.request
- must not be null.- Returns:
- the
Mono
emitting true if the index exists, false otherwise. - See Also:
-
existsIndex
public reactor.core.publisher.Mono<Boolean> existsIndex(HttpHeaders headers, org.elasticsearch.client.indices.GetIndexRequest request) Deprecated.Description copied from interface:ReactiveElasticsearchClient.Indices
Execute the givenGetIndexRequest
against the indices API.- Specified by:
existsIndex
in interfaceReactiveElasticsearchClient.Indices
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.request
- must not be null.- Returns:
- the
Mono
emitting true if the index exists, false otherwise. - See Also:
-
deleteIndex
public reactor.core.publisher.Mono<Boolean> deleteIndex(HttpHeaders headers, org.elasticsearch.action.admin.indices.delete.DeleteIndexRequest request) Deprecated.Description copied from interface:ReactiveElasticsearchClient.Indices
Execute the givenDeleteIndexRequest
against the indices API.- Specified by:
deleteIndex
in interfaceReactiveElasticsearchClient.Indices
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.request
- must not be null.- Returns:
- a
Mono
signalling operation completion or anerror
if eg. the index does not exist. - See Also:
-
flushIndex
public reactor.core.publisher.Mono<Void> flushIndex(HttpHeaders headers, org.elasticsearch.action.admin.indices.flush.FlushRequest flushRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient.Indices
Execute the givenRefreshRequest
against the indices API.- Specified by:
flushIndex
in interfaceReactiveElasticsearchClient.Indices
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.flushRequest
- must not be null.- Returns:
- a
Mono
signalling operation completion or anerror
if eg. the index does not exist. - See Also:
-
getMapping
@Deprecated public reactor.core.publisher.Mono<org.elasticsearch.action.admin.indices.mapping.get.GetMappingsResponse> getMapping(HttpHeaders headers, org.elasticsearch.action.admin.indices.mapping.get.GetMappingsRequest getMappingsRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient.Indices
Execute the givenGetMappingsRequest
against the indices API.- Specified by:
getMapping
in interfaceReactiveElasticsearchClient.Indices
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.getMappingsRequest
- must not be null.- Returns:
- a
Mono
signalling operation completion or anerror
if eg. the index does not exist. - See Also:
-
getMapping
public reactor.core.publisher.Mono<org.elasticsearch.client.indices.GetMappingsResponse> getMapping(HttpHeaders headers, org.elasticsearch.client.indices.GetMappingsRequest getMappingsRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient.Indices
Execute the givenGetMappingsRequest
against the indices API.- Specified by:
getMapping
in interfaceReactiveElasticsearchClient.Indices
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.getMappingsRequest
- must not be null.- Returns:
- a
Mono
signalling operation completion or anerror
if eg. the index does not exist. - See Also:
-
getFieldMapping
public reactor.core.publisher.Mono<org.elasticsearch.client.indices.GetFieldMappingsResponse> getFieldMapping(HttpHeaders headers, org.elasticsearch.client.indices.GetFieldMappingsRequest getFieldMappingsRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient.Indices
Execute the givenGetFieldMappingsRequest
against the indices API.- Specified by:
getFieldMapping
in interfaceReactiveElasticsearchClient.Indices
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.getFieldMappingsRequest
- must not be null.- Returns:
- a
Mono
signalling operation completion or anerror
if eg. the index does not exist. - See Also:
-
getSettings
public reactor.core.publisher.Mono<org.elasticsearch.action.admin.indices.settings.get.GetSettingsResponse> getSettings(HttpHeaders headers, org.elasticsearch.action.admin.indices.settings.get.GetSettingsRequest getSettingsRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient.Indices
Execute the givenGetSettingsRequest
against the indices API.- Specified by:
getSettings
in interfaceReactiveElasticsearchClient.Indices
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.getSettingsRequest
- must not be null.- Returns:
- a
Mono
signalling operation completion or anerror
if eg. the index does not exist. - See Also:
-
putMapping
public reactor.core.publisher.Mono<Boolean> putMapping(HttpHeaders headers, org.elasticsearch.action.admin.indices.mapping.put.PutMappingRequest putMappingRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient.Indices
Execute the givenPutMappingRequest
against the indices API.- Specified by:
putMapping
in interfaceReactiveElasticsearchClient.Indices
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.putMappingRequest
- must not be null.- Returns:
- a
Mono
signalling operation completion or anerror
if eg. the index does not exist. - See Also:
-
putMapping
public reactor.core.publisher.Mono<Boolean> putMapping(HttpHeaders headers, org.elasticsearch.client.indices.PutMappingRequest putMappingRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient.Indices
Execute the givenPutMappingRequest
against the indices API.- Specified by:
putMapping
in interfaceReactiveElasticsearchClient.Indices
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.putMappingRequest
- must not be null.- Returns:
- a
Mono
signalling operation completion or anerror
if eg. the index does not exist. - See Also:
-
openIndex
public reactor.core.publisher.Mono<Void> openIndex(HttpHeaders headers, org.elasticsearch.action.admin.indices.open.OpenIndexRequest request) Deprecated.Description copied from interface:ReactiveElasticsearchClient.Indices
Execute the givenOpenIndexRequest
against the indices API.- Specified by:
openIndex
in interfaceReactiveElasticsearchClient.Indices
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.request
- must not be null.- Returns:
- a
Mono
signalling operation completion or anerror
if eg. the index does not exist. - See Also:
-
refreshIndex
public reactor.core.publisher.Mono<Void> refreshIndex(HttpHeaders headers, org.elasticsearch.action.admin.indices.refresh.RefreshRequest refreshRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient.Indices
Execute the givenRefreshRequest
against the indices API.- Specified by:
refreshIndex
in interfaceReactiveElasticsearchClient.Indices
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.refreshRequest
- must not be null.- Returns:
- a
Mono
signalling operation completion or anerror
if eg. the index does not exist. - See Also:
-
updateAliases
public reactor.core.publisher.Mono<Boolean> updateAliases(HttpHeaders headers, org.elasticsearch.action.admin.indices.alias.IndicesAliasesRequest indicesAliasesRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient.Indices
Execute the givenIndicesAliasesRequest
against the indices API.- Specified by:
updateAliases
in interfaceReactiveElasticsearchClient.Indices
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.indicesAliasesRequest
- must not be null- Returns:
- a
Mono
signalling operation completion.
-
getAliases
public reactor.core.publisher.Mono<org.elasticsearch.client.GetAliasesResponse> getAliases(HttpHeaders headers, org.elasticsearch.action.admin.indices.alias.get.GetAliasesRequest getAliasesRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient.Indices
Execute the givenGetAliasesRequest
against the indices API.- Specified by:
getAliases
in interfaceReactiveElasticsearchClient.Indices
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.getAliasesRequest
- must not be null- Returns:
- a
Mono
signalling operation completion.
-
putTemplate
public reactor.core.publisher.Mono<Boolean> putTemplate(HttpHeaders headers, org.elasticsearch.client.indices.PutIndexTemplateRequest putIndexTemplateRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient.Indices
Execute the givenPutIndexTemplateRequest
against the indices API.- Specified by:
putTemplate
in interfaceReactiveElasticsearchClient.Indices
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.putIndexTemplateRequest
- must not be null- Returns:
- a
Mono
signalling operation completion.
-
getTemplate
public reactor.core.publisher.Mono<org.elasticsearch.client.indices.GetIndexTemplatesResponse> getTemplate(HttpHeaders headers, org.elasticsearch.client.indices.GetIndexTemplatesRequest getIndexTemplatesRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient.Indices
Execute the givenGetIndexTemplatesRequest
against the indices API.- Specified by:
getTemplate
in interfaceReactiveElasticsearchClient.Indices
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.getIndexTemplatesRequest
- must not be null- Returns:
- a
Mono
with the GetIndexTemplatesResponse.
-
existsTemplate
public reactor.core.publisher.Mono<Boolean> existsTemplate(HttpHeaders headers, org.elasticsearch.client.indices.IndexTemplatesExistRequest indexTemplatesExistRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient.Indices
Execute the givenIndexTemplatesExistRequest
against the indices API.- Specified by:
existsTemplate
in interfaceReactiveElasticsearchClient.Indices
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.indexTemplatesExistRequest
- must not be null- Returns:
- the
Mono
emitting true if the template exists, false otherwise.
-
deleteTemplate
public reactor.core.publisher.Mono<Boolean> deleteTemplate(HttpHeaders headers, org.elasticsearch.action.admin.indices.template.delete.DeleteIndexTemplateRequest deleteIndexTemplateRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient.Indices
Execute the givenDeleteIndexTemplateRequest
against the indices API.- Specified by:
deleteTemplate
in interfaceReactiveElasticsearchClient.Indices
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.deleteIndexTemplateRequest
- must not be null- Returns:
- the
Mono
emitting true if the template exists, false otherwise.
-
getIndex
public reactor.core.publisher.Mono<org.elasticsearch.client.indices.GetIndexResponse> getIndex(HttpHeaders headers, org.elasticsearch.client.indices.GetIndexRequest getIndexRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient.Indices
Execute the givenGetIndexRequest
against the indices API.- Specified by:
getIndex
in interfaceReactiveElasticsearchClient.Indices
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.getIndexRequest
- must not be null- Returns:
- the
Mono
emitting the response
-
health
public reactor.core.publisher.Mono<org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse> health(HttpHeaders headers, org.elasticsearch.action.admin.cluster.health.ClusterHealthRequest clusterHealthRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient.Cluster
Execute the given {ClusterHealthRequest
} against the cluster API.- Specified by:
health
in interfaceReactiveElasticsearchClient.Cluster
- Parameters:
headers
- UseHttpHeaders
to provide eg. authentication data. Must not be null.clusterHealthRequest
- must not be null // * @return Mono emitting theClusterHealthResponse
.
-