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
ConstructorsConstructorDescriptionDefaultReactiveElasticsearchClient(HostProvider<?> hostProvider) Deprecated.Create a newDefaultReactiveElasticsearchClientusing the givenHostProviderto obtain server connections.DefaultReactiveElasticsearchClient(HostProvider<?> hostProvider, RequestCreator requestCreator) Deprecated.Create a newDefaultReactiveElasticsearchClientusing the givenHostProviderto 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 givenSearchRequestwith 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 aBulkRequestagainst the bulk API.reactor.core.publisher.Mono<Void>closeIndex(HttpHeaders headers, org.elasticsearch.action.admin.indices.close.CloseIndexRequest closeIndexRequest) Deprecated.Execute the givenCloseIndexRequestagainst 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 aSearchRequestagainst the search API.static ReactiveElasticsearchClientcreate(ClientConfiguration clientConfiguration) Deprecated.Create a newDefaultReactiveElasticsearchClientgivenClientConfiguration.static ReactiveElasticsearchClientcreate(ClientConfiguration clientConfiguration, RequestCreator requestCreator) Deprecated.static ReactiveElasticsearchClientcreate(HttpHeaders headers, String... hosts) Deprecated.Create a newDefaultReactiveElasticsearchClientaware 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 givenCreateIndexRequestagainst the indices API.reactor.core.publisher.Mono<Boolean>createIndex(HttpHeaders headers, org.elasticsearch.client.indices.CreateIndexRequest createIndexRequest) Deprecated.Execute the givenCreateIndexRequestagainst the indices API.reactor.core.publisher.Mono<org.elasticsearch.action.delete.DeleteResponse>delete(HttpHeaders headers, org.elasticsearch.action.delete.DeleteRequest deleteRequest) Deprecated.Execute the givenDeleteRequestagainst 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 aDeleteByQueryRequestagainst the delete by query API.reactor.core.publisher.Mono<Boolean>deleteIndex(HttpHeaders headers, org.elasticsearch.action.admin.indices.delete.DeleteIndexRequest request) Deprecated.Execute the givenDeleteIndexRequestagainst the indices API.reactor.core.publisher.Mono<Boolean>deleteTemplate(HttpHeaders headers, org.elasticsearch.action.admin.indices.template.delete.DeleteIndexTemplateRequest deleteIndexTemplateRequest) Deprecated.Execute the givenDeleteIndexTemplateRequestagainst 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 givenGetIndexRequestagainst the indices API.reactor.core.publisher.Mono<Boolean>existsIndex(HttpHeaders headers, org.elasticsearch.client.indices.GetIndexRequest request) Deprecated.Execute the givenGetIndexRequestagainst the indices API.reactor.core.publisher.Mono<Boolean>existsTemplate(HttpHeaders headers, org.elasticsearch.client.indices.IndexTemplatesExistRequest indexTemplatesExistRequest) Deprecated.Execute the givenIndexTemplatesExistRequestagainst the indices API.reactor.core.publisher.Mono<Void>flushIndex(HttpHeaders headers, org.elasticsearch.action.admin.indices.flush.FlushRequest flushRequest) Deprecated.Execute the givenRefreshRequestagainst the indices API.reactor.core.publisher.Mono<org.elasticsearch.index.get.GetResult>get(HttpHeaders headers, org.elasticsearch.action.get.GetRequest getRequest) Deprecated.Execute the givenGetRequestagainst 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 givenGetAliasesRequestagainst the indices API.reactor.core.publisher.Mono<org.elasticsearch.client.indices.GetFieldMappingsResponse>getFieldMapping(HttpHeaders headers, org.elasticsearch.client.indices.GetFieldMappingsRequest getFieldMappingsRequest) Deprecated.Execute the givenGetFieldMappingsRequestagainst the indices API.reactor.core.publisher.Mono<org.elasticsearch.client.indices.GetIndexResponse>getIndex(HttpHeaders headers, org.elasticsearch.client.indices.GetIndexRequest getIndexRequest) Deprecated.Execute the givenGetIndexRequestagainst 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 givenGetMappingsRequestagainst 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 givenGetSettingsRequestagainst the indices API.reactor.core.publisher.Mono<org.elasticsearch.client.indices.GetIndexTemplatesResponse>getTemplate(HttpHeaders headers, org.elasticsearch.client.indices.GetIndexTemplatesRequest getIndexTemplatesRequest) Deprecated.Execute the givenGetIndexTemplatesRequestagainst 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 givenIndexRequestagainst 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 givenMultiGetRequestagainst 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 givenOpenIndexRequestagainst 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 givenPutMappingRequestagainst the indices API.reactor.core.publisher.Mono<Boolean>putMapping(HttpHeaders headers, org.elasticsearch.client.indices.PutMappingRequest putMappingRequest) Deprecated.Execute the givenPutMappingRequestagainst the indices API.reactor.core.publisher.Mono<Boolean>putTemplate(HttpHeaders headers, org.elasticsearch.client.indices.PutIndexTemplateRequest putIndexTemplateRequest) Deprecated.Execute the givenPutIndexTemplateRequestagainst the indices API.reactor.core.publisher.Mono<Void>refreshIndex(HttpHeaders headers, org.elasticsearch.action.admin.indices.refresh.RefreshRequest refreshRequest) Deprecated.Execute the givenRefreshRequestagainst the indices API.reactor.core.publisher.Mono<org.elasticsearch.index.reindex.BulkByScrollResponse>reindex(HttpHeaders headers, org.elasticsearch.index.reindex.ReindexRequest reindexRequest) Deprecated.Execute the givenReindexRequestagainst the reindex API.reactor.core.publisher.Flux<org.elasticsearch.search.SearchHit>scroll(HttpHeaders headers, org.elasticsearch.action.search.SearchRequest searchRequest) Deprecated.Execute the givenSearchRequestagainst the search scroll API.reactor.core.publisher.Flux<org.elasticsearch.search.SearchHit>search(HttpHeaders headers, org.elasticsearch.action.search.SearchRequest searchRequest) Deprecated.Execute the givenSearchRequestagainst the search API.reactor.core.publisher.Mono<org.elasticsearch.action.search.SearchResponse>searchForResponse(HttpHeaders headers, org.elasticsearch.action.search.SearchRequest searchRequest) Deprecated.Execute the givenSearchRequestagainst 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 aSearchTemplateRequestagainst the search template API.voidsetHeadersSupplier(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 givenReindexRequestagainst the reindex API.reactor.core.publisher.Flux<org.elasticsearch.search.suggest.Suggest>suggest(HttpHeaders headers, org.elasticsearch.action.search.SearchRequest searchRequest) Deprecated.Execute the givenSearchRequestagainst the search API.reactor.core.publisher.Mono<org.elasticsearch.action.update.UpdateResponse>update(HttpHeaders headers, org.elasticsearch.action.update.UpdateRequest updateRequest) Deprecated.Execute the givenUpdateRequestagainst 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 givenIndicesAliasesRequestagainst the indices API.reactor.core.publisher.Mono<ByQueryResponse>updateBy(HttpHeaders headers, org.elasticsearch.index.reindex.UpdateByQueryRequest updateRequest) Deprecated.Execute aUpdateByQueryRequestagainst the update by query API.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, updateByMethods inherited from interface org.springframework.data.elasticsearch.client.erhlc.ReactiveElasticsearchClient.Cluster
health, healthMethods 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 newDefaultReactiveElasticsearchClientusing the givenHostProviderto obtain server connections.- Parameters:
hostProvider- must not be null.
-
DefaultReactiveElasticsearchClient
public DefaultReactiveElasticsearchClient(HostProvider<?> hostProvider, RequestCreator requestCreator) Deprecated.Create a newDefaultReactiveElasticsearchClientusing the givenHostProviderto obtain server connections and the givenRequestCreator.- Parameters:
hostProvider- must not be null.requestCreator- must not be null.
-
-
Method Details
-
create
Deprecated.Create a newDefaultReactiveElasticsearchClientaware of the given nodes in the cluster.
NOTE If the cluster requires authentication be sure to provide the accordingHttpHeaderscorrectly.- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.hosts- must not be null nor empty!- Returns:
- new instance of
DefaultReactiveElasticsearchClient.
-
create
Deprecated.Create a newDefaultReactiveElasticsearchClientgivenClientConfiguration.
NOTE If the cluster requires authentication be sure to provide the accordingHttpHeaderscorrectly.- 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 newDefaultReactiveElasticsearchClientgivenClientConfigurationandRequestCreator.
NOTE If the cluster requires authentication be sure to provide the accordingHttpHeaderscorrectly.- 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:ReactiveElasticsearchClientPings the remote Elasticsearch cluster and emits true if the ping succeeded, false otherwise.- Specified by:
pingin interfaceReactiveElasticsearchClient- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.- Returns:
- the
Monoemitting 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:ReactiveElasticsearchClientGet the cluster info otherwise provided when sending an HTTP request to port 9200.- Specified by:
infoin interfaceReactiveElasticsearchClient- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.- Returns:
- the
Monoemitting 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:ReactiveElasticsearchClientExecute the givenGetRequestagainst the get API to retrieve a document by id.- Specified by:
getin interfaceReactiveElasticsearchClient- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.getRequest- must not be null.- Returns:
- the
Monoemitting 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:ReactiveElasticsearchClientExecute the givenMultiGetRequestagainst the multi-get API to retrieve multiple documents by id.- Specified by:
multiGetin interfaceReactiveElasticsearchClient- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.multiGetRequest- must not be null.- Returns:
- the
Fluxemitting theresult. - See Also:
-
exists
public reactor.core.publisher.Mono<Boolean> exists(HttpHeaders headers, org.elasticsearch.action.get.GetRequest getRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClientChecks for the existence of a document. Emits true if it exists, false otherwise.- Specified by:
existsin interfaceReactiveElasticsearchClient- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.getRequest- must not be null.- Returns:
- the
Monoemitting 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:ReactiveElasticsearchClientExecute the givenIndexRequestagainst the index API to index a document.- Specified by:
indexin interfaceReactiveElasticsearchClient- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.indexRequest- must not be null.- Returns:
- the
Monoemitting theIndexResponse. - See Also:
-
indices
Deprecated.Description copied from interface:ReactiveElasticsearchClientGain access to index related commands.- Specified by:
indicesin interfaceReactiveElasticsearchClient- Returns:
- access to index related commands.
-
cluster
Deprecated.Description copied from interface:ReactiveElasticsearchClientGain Access to cluster related commands.- Specified by:
clusterin 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:ReactiveElasticsearchClientExecute the givenUpdateRequestagainst the update API to alter a document.- Specified by:
updatein interfaceReactiveElasticsearchClient- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.updateRequest- must not be null.- Returns:
- the
Monoemitting 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:ReactiveElasticsearchClientExecute the givenDeleteRequestagainst the delete API to remove a document.- Specified by:
deletein interfaceReactiveElasticsearchClient- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.deleteRequest- must not be null.- Returns:
- the
Monoemitting theDeleteResponse. - See Also:
-
count
public reactor.core.publisher.Mono<Long> count(HttpHeaders headers, org.elasticsearch.action.search.SearchRequest searchRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClientExecute aSearchRequestagainst the search API.- Specified by:
countin interfaceReactiveElasticsearchClient- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.searchRequest- must not be null.- Returns:
- the
Monoemitting 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:ReactiveElasticsearchClientExecutes aSearchTemplateRequestagainst the search template API.- Specified by:
searchTemplatein interfaceReactiveElasticsearchClient- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.searchTemplateRequest- must not be null.- Returns:
- the
Fluxemittinghitsone 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:ReactiveElasticsearchClientExecute the givenSearchRequestagainst the search API.- Specified by:
searchin interfaceReactiveElasticsearchClient- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.searchRequest- must not be null.- Returns:
- the
Fluxemittinghitsone 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:ReactiveElasticsearchClientExecute the givenSearchRequestagainst the search API returning the whole response in one Mono.- Specified by:
searchForResponsein interfaceReactiveElasticsearchClient- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.searchRequest- must not be null.- Returns:
- the
Monoemitting 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:ReactiveElasticsearchClientExecute the givenSearchRequestagainst the search API.- Specified by:
suggestin interfaceReactiveElasticsearchClient- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.searchRequest- must not be null.- Returns:
- the
Fluxemittingsuggestionsone 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:ReactiveElasticsearchClientExecute the givenSearchRequestwith aggregations against the search API.- Specified by:
aggregatein interfaceReactiveElasticsearchClient- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.searchRequest- must not be null.- Returns:
- the
FluxemittingAggregationone 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:ReactiveElasticsearchClientExecute the givenSearchRequestagainst the search scroll API.
Scroll keeps track ofscrollIdsreturned by the server and provides them when requesting more results via_search/scroll. All bound server resources are freed on completion.- Specified by:
scrollin interfaceReactiveElasticsearchClient- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.searchRequest- must not be null.- Returns:
- the
Fluxemittinghitsone 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:ReactiveElasticsearchClientExecute aDeleteByQueryRequestagainst the delete by query API.- Specified by:
deleteByin interfaceReactiveElasticsearchClient- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.deleteRequest- must not be null.- Returns:
- a
Monoemitting 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:ReactiveElasticsearchClientExecute aUpdateByQueryRequestagainst the update by query API.- Specified by:
updateByin interfaceReactiveElasticsearchClient- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.updateRequest- must not be null.- Returns:
- a
Monoemitting 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:ReactiveElasticsearchClientExecute aBulkRequestagainst the bulk API.- Specified by:
bulkin interfaceReactiveElasticsearchClient- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.bulkRequest- must not be null.- Returns:
- a
Monoemitting 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:ReactiveElasticsearchClientExecute the givenReindexRequestagainst the reindex API.- Specified by:
reindexin interfaceReactiveElasticsearchClient- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.reindexRequest- must not be null- Returns:
- the
Monoemitting the response
-
submitReindex
public reactor.core.publisher.Mono<String> submitReindex(HttpHeaders headers, org.elasticsearch.index.reindex.ReindexRequest reindexRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClientExecute the givenReindexRequestagainst the reindex API.- Specified by:
submitReindexin interfaceReactiveElasticsearchClient- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.reindexRequest- must not be null- Returns:
- the
Monoemitting the task id
-
execute
public <T> reactor.core.publisher.Mono<T> execute(ReactiveElasticsearchClient.ReactiveElasticsearchClientCallback<T> callback) Deprecated.Description copied from interface:ReactiveElasticsearchClientCompose the actual command/s to run against Elasticsearch using the underlyingconnection.Executeselects an active server from the available ones and retries operations that fail with aConnectExceptionon another node if the previously selected one becomes unavailable.- Specified by:
executein interfaceReactiveElasticsearchClient- Type Parameters:
T- the type emitted by the returned Mono.- Parameters:
callback- thecallbackwielding the actual command to run.- Returns:
- the
Monoemitting theClientResponseonce subscribed.
-
status
Deprecated.Description copied from interface:ReactiveElasticsearchClientGet the current clientReactiveElasticsearchClient.Status.
NOTE the actual implementation might choose to actively check the current cluster state by pinging known nodes.- Specified by:
statusin interfaceReactiveElasticsearchClient- Returns:
- the actual
ReactiveElasticsearchClient.Statusinformation.
-
createIndex
public reactor.core.publisher.Mono<Boolean> createIndex(HttpHeaders headers, org.elasticsearch.action.admin.indices.create.CreateIndexRequest createIndexRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient.IndicesExecute the givenCreateIndexRequestagainst the indices API.- Specified by:
createIndexin interfaceReactiveElasticsearchClient.Indices- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.createIndexRequest- must not be null.- Returns:
- a
Monosignalling successful operation completion or anerrorif 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.IndicesExecute the givenCreateIndexRequestagainst the indices API.- Specified by:
createIndexin interfaceReactiveElasticsearchClient.Indices- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.createIndexRequest- must not be null.- Returns:
- a
Monosignalling successful operation completion or anerrorif 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.IndicesExecute the givenCloseIndexRequestagainst the indices API.- Specified by:
closeIndexin interfaceReactiveElasticsearchClient.Indices- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.closeIndexRequest- must not be null.- Returns:
- a
Monosignalling operation completion or anerrorif 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.IndicesExecute the givenGetIndexRequestagainst the indices API.- Specified by:
existsIndexin interfaceReactiveElasticsearchClient.Indices- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.request- must not be null.- Returns:
- the
Monoemitting 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.IndicesExecute the givenGetIndexRequestagainst the indices API.- Specified by:
existsIndexin interfaceReactiveElasticsearchClient.Indices- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.request- must not be null.- Returns:
- the
Monoemitting 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.IndicesExecute the givenDeleteIndexRequestagainst the indices API.- Specified by:
deleteIndexin interfaceReactiveElasticsearchClient.Indices- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.request- must not be null.- Returns:
- a
Monosignalling operation completion or anerrorif 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.IndicesExecute the givenRefreshRequestagainst the indices API.- Specified by:
flushIndexin interfaceReactiveElasticsearchClient.Indices- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.flushRequest- must not be null.- Returns:
- a
Monosignalling operation completion or anerrorif 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.IndicesExecute the givenGetMappingsRequestagainst the indices API.- Specified by:
getMappingin interfaceReactiveElasticsearchClient.Indices- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.getMappingsRequest- must not be null.- Returns:
- a
Monosignalling operation completion or anerrorif 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.IndicesExecute the givenGetMappingsRequestagainst the indices API.- Specified by:
getMappingin interfaceReactiveElasticsearchClient.Indices- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.getMappingsRequest- must not be null.- Returns:
- a
Monosignalling operation completion or anerrorif 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.IndicesExecute the givenGetFieldMappingsRequestagainst the indices API.- Specified by:
getFieldMappingin interfaceReactiveElasticsearchClient.Indices- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.getFieldMappingsRequest- must not be null.- Returns:
- a
Monosignalling operation completion or anerrorif 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.IndicesExecute the givenGetSettingsRequestagainst the indices API.- Specified by:
getSettingsin interfaceReactiveElasticsearchClient.Indices- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.getSettingsRequest- must not be null.- Returns:
- a
Monosignalling operation completion or anerrorif 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.IndicesExecute the givenPutMappingRequestagainst the indices API.- Specified by:
putMappingin interfaceReactiveElasticsearchClient.Indices- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.putMappingRequest- must not be null.- Returns:
- a
Monosignalling operation completion or anerrorif 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.IndicesExecute the givenPutMappingRequestagainst the indices API.- Specified by:
putMappingin interfaceReactiveElasticsearchClient.Indices- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.putMappingRequest- must not be null.- Returns:
- a
Monosignalling operation completion or anerrorif 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.IndicesExecute the givenOpenIndexRequestagainst the indices API.- Specified by:
openIndexin interfaceReactiveElasticsearchClient.Indices- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.request- must not be null.- Returns:
- a
Monosignalling operation completion or anerrorif 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.IndicesExecute the givenRefreshRequestagainst the indices API.- Specified by:
refreshIndexin interfaceReactiveElasticsearchClient.Indices- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.refreshRequest- must not be null.- Returns:
- a
Monosignalling operation completion or anerrorif 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.IndicesExecute the givenIndicesAliasesRequestagainst the indices API.- Specified by:
updateAliasesin interfaceReactiveElasticsearchClient.Indices- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.indicesAliasesRequest- must not be null- Returns:
- a
Monosignalling 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.IndicesExecute the givenGetAliasesRequestagainst the indices API.- Specified by:
getAliasesin interfaceReactiveElasticsearchClient.Indices- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.getAliasesRequest- must not be null- Returns:
- a
Monosignalling operation completion.
-
putTemplate
public reactor.core.publisher.Mono<Boolean> putTemplate(HttpHeaders headers, org.elasticsearch.client.indices.PutIndexTemplateRequest putIndexTemplateRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient.IndicesExecute the givenPutIndexTemplateRequestagainst the indices API.- Specified by:
putTemplatein interfaceReactiveElasticsearchClient.Indices- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.putIndexTemplateRequest- must not be null- Returns:
- a
Monosignalling 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.IndicesExecute the givenGetIndexTemplatesRequestagainst the indices API.- Specified by:
getTemplatein interfaceReactiveElasticsearchClient.Indices- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.getIndexTemplatesRequest- must not be null- Returns:
- a
Monowith the GetIndexTemplatesResponse.
-
existsTemplate
public reactor.core.publisher.Mono<Boolean> existsTemplate(HttpHeaders headers, org.elasticsearch.client.indices.IndexTemplatesExistRequest indexTemplatesExistRequest) Deprecated.Description copied from interface:ReactiveElasticsearchClient.IndicesExecute the givenIndexTemplatesExistRequestagainst the indices API.- Specified by:
existsTemplatein interfaceReactiveElasticsearchClient.Indices- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.indexTemplatesExistRequest- must not be null- Returns:
- the
Monoemitting 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.IndicesExecute the givenDeleteIndexTemplateRequestagainst the indices API.- Specified by:
deleteTemplatein interfaceReactiveElasticsearchClient.Indices- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.deleteIndexTemplateRequest- must not be null- Returns:
- the
Monoemitting 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.IndicesExecute the givenGetIndexRequestagainst the indices API.- Specified by:
getIndexin interfaceReactiveElasticsearchClient.Indices- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.getIndexRequest- must not be null- Returns:
- the
Monoemitting 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.ClusterExecute the given {ClusterHealthRequest} against the cluster API.- Specified by:
healthin interfaceReactiveElasticsearchClient.Cluster- Parameters:
headers- UseHttpHeadersto provide eg. authentication data. Must not be null.clusterHealthRequest- must not be null // * @return Mono emitting theClusterHealthResponse.
-