Package co.elastic.clients.elasticsearch
Class ElasticsearchAsyncClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchAsyncClient>
co.elastic.clients.elasticsearch.ElasticsearchAsyncClient
public class ElasticsearchAsyncClient extends ApiClient<ElasticsearchTransport,ElasticsearchAsyncClient>
Client for the namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions -
Constructor Summary
Constructors Constructor Description ElasticsearchAsyncClient(ElasticsearchTransport transport)ElasticsearchAsyncClient(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and Type Method Description ElasticsearchAsyncSearchAsyncClientasyncSearch()ElasticsearchAutoscalingAsyncClientautoscaling()java.util.concurrent.CompletableFuture<BulkResponse>bulk()Allows to perform multiple index/update/delete operations in a single request.java.util.concurrent.CompletableFuture<BulkResponse>bulk(BulkRequest request)Allows to perform multiple index/update/delete operations in a single request.java.util.concurrent.CompletableFuture<BulkResponse>bulk(java.util.function.Function<BulkRequest.Builder,ObjectBuilder<BulkRequest>> fn)Allows to perform multiple index/update/delete operations in a single request.ElasticsearchCatAsyncClientcat()ElasticsearchCcrAsyncClientccr()java.util.concurrent.CompletableFuture<ClearScrollResponse>clearScroll()Explicitly clears the search context for a scroll.java.util.concurrent.CompletableFuture<ClearScrollResponse>clearScroll(ClearScrollRequest request)Explicitly clears the search context for a scroll.java.util.concurrent.CompletableFuture<ClearScrollResponse>clearScroll(java.util.function.Function<ClearScrollRequest.Builder,ObjectBuilder<ClearScrollRequest>> fn)Explicitly clears the search context for a scroll.java.util.concurrent.CompletableFuture<ClosePointInTimeResponse>closePointInTime(ClosePointInTimeRequest request)Close a point in timejava.util.concurrent.CompletableFuture<ClosePointInTimeResponse>closePointInTime(java.util.function.Function<ClosePointInTimeRequest.Builder,ObjectBuilder<ClosePointInTimeRequest>> fn)Close a point in timeElasticsearchClusterAsyncClientcluster()java.util.concurrent.CompletableFuture<CountResponse>count()Returns number of documents matching a query.java.util.concurrent.CompletableFuture<CountResponse>count(CountRequest request)Returns number of documents matching a query.java.util.concurrent.CompletableFuture<CountResponse>count(java.util.function.Function<CountRequest.Builder,ObjectBuilder<CountRequest>> fn)Returns number of documents matching a query.<TDocument>
java.util.concurrent.CompletableFuture<CreateResponse>create(CreateRequest<TDocument> request)Creates a new document in the index.<TDocument>
java.util.concurrent.CompletableFuture<CreateResponse>create(java.util.function.Function<CreateRequest.Builder<TDocument>,ObjectBuilder<CreateRequest<TDocument>>> fn)Creates a new document in the index.ElasticsearchDanglingIndicesAsyncClientdanglingIndices()java.util.concurrent.CompletableFuture<DeleteResponse>delete(DeleteRequest request)Removes a document from the index.java.util.concurrent.CompletableFuture<DeleteResponse>delete(java.util.function.Function<DeleteRequest.Builder,ObjectBuilder<DeleteRequest>> fn)Removes a document from the index.java.util.concurrent.CompletableFuture<DeleteByQueryResponse>deleteByQuery(DeleteByQueryRequest request)Deletes documents matching the provided query.java.util.concurrent.CompletableFuture<DeleteByQueryResponse>deleteByQuery(java.util.function.Function<DeleteByQueryRequest.Builder,ObjectBuilder<DeleteByQueryRequest>> fn)Deletes documents matching the provided query.java.util.concurrent.CompletableFuture<DeleteByQueryRethrottleResponse>deleteByQueryRethrottle(DeleteByQueryRethrottleRequest request)Changes the number of requests per second for a particular Delete By Query operation.java.util.concurrent.CompletableFuture<DeleteByQueryRethrottleResponse>deleteByQueryRethrottle(java.util.function.Function<DeleteByQueryRethrottleRequest.Builder,ObjectBuilder<DeleteByQueryRethrottleRequest>> fn)Changes the number of requests per second for a particular Delete By Query operation.java.util.concurrent.CompletableFuture<DeleteScriptResponse>deleteScript(DeleteScriptRequest request)Deletes a script.java.util.concurrent.CompletableFuture<DeleteScriptResponse>deleteScript(java.util.function.Function<DeleteScriptRequest.Builder,ObjectBuilder<DeleteScriptRequest>> fn)Deletes a script.ElasticsearchEnrichAsyncClientenrich()ElasticsearchEqlAsyncClienteql()java.util.concurrent.CompletableFuture<BooleanResponse>exists(ExistsRequest request)Returns information about whether a document exists in an index.java.util.concurrent.CompletableFuture<BooleanResponse>exists(java.util.function.Function<ExistsRequest.Builder,ObjectBuilder<ExistsRequest>> fn)Returns information about whether a document exists in an index.java.util.concurrent.CompletableFuture<BooleanResponse>existsSource(ExistsSourceRequest request)Returns information about whether a document source exists in an index.java.util.concurrent.CompletableFuture<BooleanResponse>existsSource(java.util.function.Function<ExistsSourceRequest.Builder,ObjectBuilder<ExistsSourceRequest>> fn)Returns information about whether a document source exists in an index.<TDocument>
java.util.concurrent.CompletableFuture<ExplainResponse<TDocument>>explain(ExplainRequest request, java.lang.Class<TDocument> tDocumentClass)Returns information about why a specific matches (or doesn't match) a query.<TDocument>
java.util.concurrent.CompletableFuture<ExplainResponse<TDocument>>explain(java.util.function.Function<ExplainRequest.Builder,ObjectBuilder<ExplainRequest>> fn, java.lang.Class<TDocument> tDocumentClass)Returns information about why a specific matches (or doesn't match) a query.ElasticsearchFeaturesAsyncClientfeatures()java.util.concurrent.CompletableFuture<FieldCapsResponse>fieldCaps(FieldCapsRequest request)Returns the information about the capabilities of fields among multiple indices.java.util.concurrent.CompletableFuture<FieldCapsResponse>fieldCaps(java.util.function.Function<FieldCapsRequest.Builder,ObjectBuilder<FieldCapsRequest>> fn)Returns the information about the capabilities of fields among multiple indices.<TDocument>
java.util.concurrent.CompletableFuture<GetResponse<TDocument>>get(GetRequest request, java.lang.Class<TDocument> tDocumentClass)Returns a document.<TDocument>
java.util.concurrent.CompletableFuture<GetResponse<TDocument>>get(java.util.function.Function<GetRequest.Builder,ObjectBuilder<GetRequest>> fn, java.lang.Class<TDocument> tDocumentClass)Returns a document.java.util.concurrent.CompletableFuture<GetScriptResponse>getScript(GetScriptRequest request)Returns a script.java.util.concurrent.CompletableFuture<GetScriptResponse>getScript(java.util.function.Function<GetScriptRequest.Builder,ObjectBuilder<GetScriptRequest>> fn)Returns a script.java.util.concurrent.CompletableFuture<GetScriptContextResponse>getScriptContext()Returns all script contexts.java.util.concurrent.CompletableFuture<GetScriptLanguagesResponse>getScriptLanguages()Returns available script types, languages and contexts<TDocument>
java.util.concurrent.CompletableFuture<GetSourceResponse<TDocument>>getSource(GetSourceRequest request, java.lang.Class<TDocument> tDocumentClass)Returns the source of a document.<TDocument>
java.util.concurrent.CompletableFuture<GetSourceResponse<TDocument>>getSource(java.util.function.Function<GetSourceRequest.Builder,ObjectBuilder<GetSourceRequest>> fn, java.lang.Class<TDocument> tDocumentClass)Returns the source of a document.ElasticsearchGraphAsyncClientgraph()ElasticsearchIlmAsyncClientilm()<TDocument>
java.util.concurrent.CompletableFuture<IndexResponse>index(IndexRequest<TDocument> request)Creates or updates a document in an index.<TDocument>
java.util.concurrent.CompletableFuture<IndexResponse>index(java.util.function.Function<IndexRequest.Builder<TDocument>,ObjectBuilder<IndexRequest<TDocument>>> fn)Creates or updates a document in an index.ElasticsearchIndicesAsyncClientindices()java.util.concurrent.CompletableFuture<InfoResponse>info()Returns basic information about the cluster.ElasticsearchIngestAsyncClientingest()ElasticsearchLicenseAsyncClientlicense()ElasticsearchLogstashAsyncClientlogstash()<TDocument>
java.util.concurrent.CompletableFuture<MgetResponse<TDocument>>mget(MgetRequest request, java.lang.Class<TDocument> tDocumentClass)Allows to get multiple documents in one request.<TDocument>
java.util.concurrent.CompletableFuture<MgetResponse<TDocument>>mget(java.util.function.Function<MgetRequest.Builder,ObjectBuilder<MgetRequest>> fn, java.lang.Class<TDocument> tDocumentClass)Allows to get multiple documents in one request.ElasticsearchMigrationAsyncClientmigration()ElasticsearchMlAsyncClientml()ElasticsearchMonitoringAsyncClientmonitoring()<TDocument>
java.util.concurrent.CompletableFuture<MsearchResponse<TDocument>>msearch(MsearchRequest request, java.lang.Class<TDocument> tDocumentClass)Allows to execute several search operations in one request.<TDocument>
java.util.concurrent.CompletableFuture<MsearchResponse<TDocument>>msearch(java.util.function.Function<MsearchRequest.Builder,ObjectBuilder<MsearchRequest>> fn, java.lang.Class<TDocument> tDocumentClass)Allows to execute several search operations in one request.<TDocument>
java.util.concurrent.CompletableFuture<MsearchTemplateResponse<TDocument>>msearchTemplate(MsearchTemplateRequest request, java.lang.Class<TDocument> tDocumentClass)Allows to execute several search template operations in one request.<TDocument>
java.util.concurrent.CompletableFuture<MsearchTemplateResponse<TDocument>>msearchTemplate(java.util.function.Function<MsearchTemplateRequest.Builder,ObjectBuilder<MsearchTemplateRequest>> fn, java.lang.Class<TDocument> tDocumentClass)Allows to execute several search template operations in one request.java.util.concurrent.CompletableFuture<MtermvectorsResponse>mtermvectors()Returns multiple termvectors in one request.java.util.concurrent.CompletableFuture<MtermvectorsResponse>mtermvectors(MtermvectorsRequest request)Returns multiple termvectors in one request.java.util.concurrent.CompletableFuture<MtermvectorsResponse>mtermvectors(java.util.function.Function<MtermvectorsRequest.Builder,ObjectBuilder<MtermvectorsRequest>> fn)Returns multiple termvectors in one request.ElasticsearchNodesAsyncClientnodes()java.util.concurrent.CompletableFuture<OpenPointInTimeResponse>openPointInTime(OpenPointInTimeRequest request)Open a point in time that can be used in subsequent searchesjava.util.concurrent.CompletableFuture<OpenPointInTimeResponse>openPointInTime(java.util.function.Function<OpenPointInTimeRequest.Builder,ObjectBuilder<OpenPointInTimeRequest>> fn)Open a point in time that can be used in subsequent searchesjava.util.concurrent.CompletableFuture<BooleanResponse>ping()Returns whether the cluster is running.java.util.concurrent.CompletableFuture<PutScriptResponse>putScript(PutScriptRequest request)Creates or updates a script.java.util.concurrent.CompletableFuture<PutScriptResponse>putScript(java.util.function.Function<PutScriptRequest.Builder,ObjectBuilder<PutScriptRequest>> fn)Creates or updates a script.java.util.concurrent.CompletableFuture<RankEvalResponse>rankEval(RankEvalRequest request)Allows to evaluate the quality of ranked search results over a set of typical search queriesjava.util.concurrent.CompletableFuture<RankEvalResponse>rankEval(java.util.function.Function<RankEvalRequest.Builder,ObjectBuilder<RankEvalRequest>> fn)Allows to evaluate the quality of ranked search results over a set of typical search queriesjava.util.concurrent.CompletableFuture<ReindexResponse>reindex(ReindexRequest request)Allows to copy documents from one index to another, optionally filtering the source documents by a query, changing the destination index settings, or fetching the documents from a remote cluster.java.util.concurrent.CompletableFuture<ReindexResponse>reindex(java.util.function.Function<ReindexRequest.Builder,ObjectBuilder<ReindexRequest>> fn)Allows to copy documents from one index to another, optionally filtering the source documents by a query, changing the destination index settings, or fetching the documents from a remote cluster.java.util.concurrent.CompletableFuture<ReindexRethrottleResponse>reindexRethrottle(ReindexRethrottleRequest request)Changes the number of requests per second for a particular Reindex operation.java.util.concurrent.CompletableFuture<ReindexRethrottleResponse>reindexRethrottle(java.util.function.Function<ReindexRethrottleRequest.Builder,ObjectBuilder<ReindexRethrottleRequest>> fn)Changes the number of requests per second for a particular Reindex operation.java.util.concurrent.CompletableFuture<RenderSearchTemplateResponse>renderSearchTemplate()Allows to use the Mustache language to pre-render a search definition.java.util.concurrent.CompletableFuture<RenderSearchTemplateResponse>renderSearchTemplate(RenderSearchTemplateRequest request)Allows to use the Mustache language to pre-render a search definition.java.util.concurrent.CompletableFuture<RenderSearchTemplateResponse>renderSearchTemplate(java.util.function.Function<RenderSearchTemplateRequest.Builder,ObjectBuilder<RenderSearchTemplateRequest>> fn)Allows to use the Mustache language to pre-render a search definition.ElasticsearchRollupAsyncClientrollup()<TResult> java.util.concurrent.CompletableFuture<ScriptsPainlessExecuteResponse<TResult>>scriptsPainlessExecute(ScriptsPainlessExecuteRequest request, java.lang.Class<TResult> tResultClass)Allows an arbitrary script to be executed and a result to be returned<TResult> java.util.concurrent.CompletableFuture<ScriptsPainlessExecuteResponse<TResult>>scriptsPainlessExecute(java.util.function.Function<ScriptsPainlessExecuteRequest.Builder,ObjectBuilder<ScriptsPainlessExecuteRequest>> fn, java.lang.Class<TResult> tResultClass)Allows an arbitrary script to be executed and a result to be returned<TDocument>
java.util.concurrent.CompletableFuture<ScrollResponse<TDocument>>scroll(ScrollRequest request, java.lang.Class<TDocument> tDocumentClass)Allows to retrieve a large numbers of results from a single search request.<TDocument>
java.util.concurrent.CompletableFuture<ScrollResponse<TDocument>>scroll(java.util.function.Function<ScrollRequest.Builder,ObjectBuilder<ScrollRequest>> fn, java.lang.Class<TDocument> tDocumentClass)Allows to retrieve a large numbers of results from a single search request.<TDocument>
java.util.concurrent.CompletableFuture<SearchResponse<TDocument>>search(SearchRequest request, java.lang.Class<TDocument> tDocumentClass)Returns results matching a query.<TDocument>
java.util.concurrent.CompletableFuture<SearchResponse<TDocument>>search(java.util.function.Function<SearchRequest.Builder,ObjectBuilder<SearchRequest>> fn, java.lang.Class<TDocument> tDocumentClass)Returns results matching a query.ElasticsearchSearchableSnapshotsAsyncClientsearchableSnapshots()java.util.concurrent.CompletableFuture<SearchShardsResponse>searchShards()Returns information about the indices and shards that a search request would be executed against.java.util.concurrent.CompletableFuture<SearchShardsResponse>searchShards(SearchShardsRequest request)Returns information about the indices and shards that a search request would be executed against.java.util.concurrent.CompletableFuture<SearchShardsResponse>searchShards(java.util.function.Function<SearchShardsRequest.Builder,ObjectBuilder<SearchShardsRequest>> fn)Returns information about the indices and shards that a search request would be executed against.<TDocument>
java.util.concurrent.CompletableFuture<SearchTemplateResponse<TDocument>>searchTemplate(SearchTemplateRequest request, java.lang.Class<TDocument> tDocumentClass)Allows to use the Mustache language to pre-render a search definition.<TDocument>
java.util.concurrent.CompletableFuture<SearchTemplateResponse<TDocument>>searchTemplate(java.util.function.Function<SearchTemplateRequest.Builder,ObjectBuilder<SearchTemplateRequest>> fn, java.lang.Class<TDocument> tDocumentClass)Allows to use the Mustache language to pre-render a search definition.ElasticsearchSecurityAsyncClientsecurity()ElasticsearchShutdownAsyncClientshutdown()ElasticsearchSlmAsyncClientslm()ElasticsearchSnapshotAsyncClientsnapshot()ElasticsearchSqlAsyncClientsql()ElasticsearchSslAsyncClientssl()ElasticsearchTasksAsyncClienttasks()java.util.concurrent.CompletableFuture<TermsEnumResponse>termsEnum(TermsEnumRequest request)The terms enum API can be used to discover terms in the index that begin with the provided string.java.util.concurrent.CompletableFuture<TermsEnumResponse>termsEnum(java.util.function.Function<TermsEnumRequest.Builder,ObjectBuilder<TermsEnumRequest>> fn)The terms enum API can be used to discover terms in the index that begin with the provided string.<TDocument>
java.util.concurrent.CompletableFuture<TermvectorsResponse>termvectors(TermvectorsRequest<TDocument> request)Returns information and statistics about terms in the fields of a particular document.<TDocument>
java.util.concurrent.CompletableFuture<TermvectorsResponse>termvectors(java.util.function.Function<TermvectorsRequest.Builder<TDocument>,ObjectBuilder<TermvectorsRequest<TDocument>>> fn)Returns information and statistics about terms in the fields of a particular document.ElasticsearchTransformAsyncClienttransform()<TDocument, TPartialDocument>
java.util.concurrent.CompletableFuture<UpdateResponse<TDocument>>update(UpdateRequest<TDocument,TPartialDocument> request, java.lang.Class<TDocument> tDocumentClass)Updates a document with a script or partial document.<TDocument, TPartialDocument>
java.util.concurrent.CompletableFuture<UpdateResponse<TDocument>>update(java.util.function.Function<UpdateRequest.Builder<TDocument,TPartialDocument>,ObjectBuilder<UpdateRequest<TDocument,TPartialDocument>>> fn, java.lang.Class<TDocument> tDocumentClass)Updates a document with a script or partial document.java.util.concurrent.CompletableFuture<UpdateByQueryResponse>updateByQuery(UpdateByQueryRequest request)Performs an update on every document in the index without changing the source, for example to pick up a mapping change.java.util.concurrent.CompletableFuture<UpdateByQueryResponse>updateByQuery(java.util.function.Function<UpdateByQueryRequest.Builder,ObjectBuilder<UpdateByQueryRequest>> fn)Performs an update on every document in the index without changing the source, for example to pick up a mapping change.java.util.concurrent.CompletableFuture<UpdateByQueryRethrottleResponse>updateByQueryRethrottle(UpdateByQueryRethrottleRequest request)Changes the number of requests per second for a particular Update By Query operation.java.util.concurrent.CompletableFuture<UpdateByQueryRethrottleResponse>updateByQueryRethrottle(java.util.function.Function<UpdateByQueryRethrottleRequest.Builder,ObjectBuilder<UpdateByQueryRethrottleRequest>> fn)Changes the number of requests per second for a particular Update By Query operation.ElasticsearchWatcherAsyncClientwatcher()ElasticsearchAsyncClientwithTransportOptions(TransportOptions transportOptions)Creates a new client with some request optionsElasticsearchXpackAsyncClientxpack()Methods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchAsyncClient
-
ElasticsearchAsyncClient
public ElasticsearchAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchAsyncClient>
-
asyncSearch
-
autoscaling
-
cat
-
ccr
-
cluster
-
danglingIndices
-
enrich
-
eql
-
features
-
graph
-
ilm
-
indices
-
ingest
-
license
-
logstash
-
migration
-
ml
-
monitoring
-
nodes
-
rollup
-
searchableSnapshots
-
security
-
shutdown
-
slm
-
snapshot
-
sql
-
ssl
-
tasks
-
transform
-
watcher
-
xpack
-
bulk
Allows to perform multiple index/update/delete operations in a single request.- See Also:
- Documentation on elastic.co
-
bulk
public final java.util.concurrent.CompletableFuture<BulkResponse> bulk(java.util.function.Function<BulkRequest.Builder,ObjectBuilder<BulkRequest>> fn)Allows to perform multiple index/update/delete operations in a single request.- Parameters:
fn- a function that initializes a builder to create theBulkRequest- See Also:
- Documentation on elastic.co
-
bulk
Allows to perform multiple index/update/delete operations in a single request.- See Also:
- Documentation on elastic.co
-
clearScroll
public java.util.concurrent.CompletableFuture<ClearScrollResponse> clearScroll(ClearScrollRequest request)Explicitly clears the search context for a scroll.- See Also:
- Documentation on elastic.co
-
clearScroll
public final java.util.concurrent.CompletableFuture<ClearScrollResponse> clearScroll(java.util.function.Function<ClearScrollRequest.Builder,ObjectBuilder<ClearScrollRequest>> fn)Explicitly clears the search context for a scroll.- Parameters:
fn- a function that initializes a builder to create theClearScrollRequest- See Also:
- Documentation on elastic.co
-
clearScroll
Explicitly clears the search context for a scroll.- See Also:
- Documentation on elastic.co
-
closePointInTime
public java.util.concurrent.CompletableFuture<ClosePointInTimeResponse> closePointInTime(ClosePointInTimeRequest request)Close a point in time- See Also:
- Documentation on elastic.co
-
closePointInTime
public final java.util.concurrent.CompletableFuture<ClosePointInTimeResponse> closePointInTime(java.util.function.Function<ClosePointInTimeRequest.Builder,ObjectBuilder<ClosePointInTimeRequest>> fn)Close a point in time- Parameters:
fn- a function that initializes a builder to create theClosePointInTimeRequest- See Also:
- Documentation on elastic.co
-
count
Returns number of documents matching a query.- See Also:
- Documentation on elastic.co
-
count
public final java.util.concurrent.CompletableFuture<CountResponse> count(java.util.function.Function<CountRequest.Builder,ObjectBuilder<CountRequest>> fn)Returns number of documents matching a query.- Parameters:
fn- a function that initializes a builder to create theCountRequest- See Also:
- Documentation on elastic.co
-
count
Returns number of documents matching a query.- See Also:
- Documentation on elastic.co
-
create
public <TDocument> java.util.concurrent.CompletableFuture<CreateResponse> create(CreateRequest<TDocument> request)Creates a new document in the index.Returns a 409 response when a document with a same ID already exists in the index.
- See Also:
- Documentation on elastic.co
-
create
public final <TDocument> java.util.concurrent.CompletableFuture<CreateResponse> create(java.util.function.Function<CreateRequest.Builder<TDocument>,ObjectBuilder<CreateRequest<TDocument>>> fn)Creates a new document in the index.Returns a 409 response when a document with a same ID already exists in the index.
- Parameters:
fn- a function that initializes a builder to create theCreateRequest- See Also:
- Documentation on elastic.co
-
delete
Removes a document from the index.- See Also:
- Documentation on elastic.co
-
delete
public final java.util.concurrent.CompletableFuture<DeleteResponse> delete(java.util.function.Function<DeleteRequest.Builder,ObjectBuilder<DeleteRequest>> fn)Removes a document from the index.- Parameters:
fn- a function that initializes a builder to create theDeleteRequest- See Also:
- Documentation on elastic.co
-
deleteByQuery
public java.util.concurrent.CompletableFuture<DeleteByQueryResponse> deleteByQuery(DeleteByQueryRequest request)Deletes documents matching the provided query.- See Also:
- Documentation on elastic.co
-
deleteByQuery
public final java.util.concurrent.CompletableFuture<DeleteByQueryResponse> deleteByQuery(java.util.function.Function<DeleteByQueryRequest.Builder,ObjectBuilder<DeleteByQueryRequest>> fn)Deletes documents matching the provided query.- Parameters:
fn- a function that initializes a builder to create theDeleteByQueryRequest- See Also:
- Documentation on elastic.co
-
deleteByQueryRethrottle
public java.util.concurrent.CompletableFuture<DeleteByQueryRethrottleResponse> deleteByQueryRethrottle(DeleteByQueryRethrottleRequest request)Changes the number of requests per second for a particular Delete By Query operation.- See Also:
- Documentation on elastic.co
-
deleteByQueryRethrottle
public final java.util.concurrent.CompletableFuture<DeleteByQueryRethrottleResponse> deleteByQueryRethrottle(java.util.function.Function<DeleteByQueryRethrottleRequest.Builder,ObjectBuilder<DeleteByQueryRethrottleRequest>> fn)Changes the number of requests per second for a particular Delete By Query operation.- Parameters:
fn- a function that initializes a builder to create theDeleteByQueryRethrottleRequest- See Also:
- Documentation on elastic.co
-
deleteScript
public java.util.concurrent.CompletableFuture<DeleteScriptResponse> deleteScript(DeleteScriptRequest request)Deletes a script.- See Also:
- Documentation on elastic.co
-
deleteScript
public final java.util.concurrent.CompletableFuture<DeleteScriptResponse> deleteScript(java.util.function.Function<DeleteScriptRequest.Builder,ObjectBuilder<DeleteScriptRequest>> fn)Deletes a script.- Parameters:
fn- a function that initializes a builder to create theDeleteScriptRequest- See Also:
- Documentation on elastic.co
-
exists
Returns information about whether a document exists in an index.- See Also:
- Documentation on elastic.co
-
exists
public final java.util.concurrent.CompletableFuture<BooleanResponse> exists(java.util.function.Function<ExistsRequest.Builder,ObjectBuilder<ExistsRequest>> fn)Returns information about whether a document exists in an index.- Parameters:
fn- a function that initializes a builder to create theExistsRequest- See Also:
- Documentation on elastic.co
-
existsSource
public java.util.concurrent.CompletableFuture<BooleanResponse> existsSource(ExistsSourceRequest request)Returns information about whether a document source exists in an index.- See Also:
- Documentation on elastic.co
-
existsSource
public final java.util.concurrent.CompletableFuture<BooleanResponse> existsSource(java.util.function.Function<ExistsSourceRequest.Builder,ObjectBuilder<ExistsSourceRequest>> fn)Returns information about whether a document source exists in an index.- Parameters:
fn- a function that initializes a builder to create theExistsSourceRequest- See Also:
- Documentation on elastic.co
-
explain
public <TDocument> java.util.concurrent.CompletableFuture<ExplainResponse<TDocument>> explain(ExplainRequest request, java.lang.Class<TDocument> tDocumentClass)Returns information about why a specific matches (or doesn't match) a query.- See Also:
- Documentation on elastic.co
-
explain
public final <TDocument> java.util.concurrent.CompletableFuture<ExplainResponse<TDocument>> explain(java.util.function.Function<ExplainRequest.Builder,ObjectBuilder<ExplainRequest>> fn, java.lang.Class<TDocument> tDocumentClass)Returns information about why a specific matches (or doesn't match) a query.- Parameters:
fn- a function that initializes a builder to create theExplainRequest- See Also:
- Documentation on elastic.co
-
fieldCaps
public java.util.concurrent.CompletableFuture<FieldCapsResponse> fieldCaps(FieldCapsRequest request)Returns the information about the capabilities of fields among multiple indices.- See Also:
- Documentation on elastic.co
-
fieldCaps
public final java.util.concurrent.CompletableFuture<FieldCapsResponse> fieldCaps(java.util.function.Function<FieldCapsRequest.Builder,ObjectBuilder<FieldCapsRequest>> fn)Returns the information about the capabilities of fields among multiple indices.- Parameters:
fn- a function that initializes a builder to create theFieldCapsRequest- See Also:
- Documentation on elastic.co
-
get
public <TDocument> java.util.concurrent.CompletableFuture<GetResponse<TDocument>> get(GetRequest request, java.lang.Class<TDocument> tDocumentClass)Returns a document.- See Also:
- Documentation on elastic.co
-
get
public final <TDocument> java.util.concurrent.CompletableFuture<GetResponse<TDocument>> get(java.util.function.Function<GetRequest.Builder,ObjectBuilder<GetRequest>> fn, java.lang.Class<TDocument> tDocumentClass)Returns a document.- Parameters:
fn- a function that initializes a builder to create theGetRequest- See Also:
- Documentation on elastic.co
-
getScript
public java.util.concurrent.CompletableFuture<GetScriptResponse> getScript(GetScriptRequest request)Returns a script.- See Also:
- Documentation on elastic.co
-
getScript
public final java.util.concurrent.CompletableFuture<GetScriptResponse> getScript(java.util.function.Function<GetScriptRequest.Builder,ObjectBuilder<GetScriptRequest>> fn)Returns a script.- Parameters:
fn- a function that initializes a builder to create theGetScriptRequest- See Also:
- Documentation on elastic.co
-
getScriptContext
Returns all script contexts.- See Also:
- Documentation on elastic.co
-
getScriptLanguages
Returns available script types, languages and contexts- See Also:
- Documentation on elastic.co
-
getSource
public <TDocument> java.util.concurrent.CompletableFuture<GetSourceResponse<TDocument>> getSource(GetSourceRequest request, java.lang.Class<TDocument> tDocumentClass)Returns the source of a document.- See Also:
- Documentation on elastic.co
-
getSource
public final <TDocument> java.util.concurrent.CompletableFuture<GetSourceResponse<TDocument>> getSource(java.util.function.Function<GetSourceRequest.Builder,ObjectBuilder<GetSourceRequest>> fn, java.lang.Class<TDocument> tDocumentClass)Returns the source of a document.- Parameters:
fn- a function that initializes a builder to create theGetSourceRequest- See Also:
- Documentation on elastic.co
-
index
public <TDocument> java.util.concurrent.CompletableFuture<IndexResponse> index(IndexRequest<TDocument> request)Creates or updates a document in an index.- See Also:
- Documentation on elastic.co
-
index
public final <TDocument> java.util.concurrent.CompletableFuture<IndexResponse> index(java.util.function.Function<IndexRequest.Builder<TDocument>,ObjectBuilder<IndexRequest<TDocument>>> fn)Creates or updates a document in an index.- Parameters:
fn- a function that initializes a builder to create theIndexRequest- See Also:
- Documentation on elastic.co
-
info
Returns basic information about the cluster.- See Also:
- Documentation on elastic.co
-
mget
public <TDocument> java.util.concurrent.CompletableFuture<MgetResponse<TDocument>> mget(MgetRequest request, java.lang.Class<TDocument> tDocumentClass)Allows to get multiple documents in one request.- See Also:
- Documentation on elastic.co
-
mget
public final <TDocument> java.util.concurrent.CompletableFuture<MgetResponse<TDocument>> mget(java.util.function.Function<MgetRequest.Builder,ObjectBuilder<MgetRequest>> fn, java.lang.Class<TDocument> tDocumentClass)Allows to get multiple documents in one request.- Parameters:
fn- a function that initializes a builder to create theMgetRequest- See Also:
- Documentation on elastic.co
-
msearch
public <TDocument> java.util.concurrent.CompletableFuture<MsearchResponse<TDocument>> msearch(MsearchRequest request, java.lang.Class<TDocument> tDocumentClass)Allows to execute several search operations in one request.- See Also:
- Documentation on elastic.co
-
msearch
public final <TDocument> java.util.concurrent.CompletableFuture<MsearchResponse<TDocument>> msearch(java.util.function.Function<MsearchRequest.Builder,ObjectBuilder<MsearchRequest>> fn, java.lang.Class<TDocument> tDocumentClass)Allows to execute several search operations in one request.- Parameters:
fn- a function that initializes a builder to create theMsearchRequest- See Also:
- Documentation on elastic.co
-
msearchTemplate
public <TDocument> java.util.concurrent.CompletableFuture<MsearchTemplateResponse<TDocument>> msearchTemplate(MsearchTemplateRequest request, java.lang.Class<TDocument> tDocumentClass)Allows to execute several search template operations in one request.- See Also:
- Documentation on elastic.co
-
msearchTemplate
public final <TDocument> java.util.concurrent.CompletableFuture<MsearchTemplateResponse<TDocument>> msearchTemplate(java.util.function.Function<MsearchTemplateRequest.Builder,ObjectBuilder<MsearchTemplateRequest>> fn, java.lang.Class<TDocument> tDocumentClass)Allows to execute several search template operations in one request.- Parameters:
fn- a function that initializes a builder to create theMsearchTemplateRequest- See Also:
- Documentation on elastic.co
-
mtermvectors
public java.util.concurrent.CompletableFuture<MtermvectorsResponse> mtermvectors(MtermvectorsRequest request)Returns multiple termvectors in one request.- See Also:
- Documentation on elastic.co
-
mtermvectors
public final java.util.concurrent.CompletableFuture<MtermvectorsResponse> mtermvectors(java.util.function.Function<MtermvectorsRequest.Builder,ObjectBuilder<MtermvectorsRequest>> fn)Returns multiple termvectors in one request.- Parameters:
fn- a function that initializes a builder to create theMtermvectorsRequest- See Also:
- Documentation on elastic.co
-
mtermvectors
Returns multiple termvectors in one request.- See Also:
- Documentation on elastic.co
-
openPointInTime
public java.util.concurrent.CompletableFuture<OpenPointInTimeResponse> openPointInTime(OpenPointInTimeRequest request)Open a point in time that can be used in subsequent searches- See Also:
- Documentation on elastic.co
-
openPointInTime
public final java.util.concurrent.CompletableFuture<OpenPointInTimeResponse> openPointInTime(java.util.function.Function<OpenPointInTimeRequest.Builder,ObjectBuilder<OpenPointInTimeRequest>> fn)Open a point in time that can be used in subsequent searches- Parameters:
fn- a function that initializes a builder to create theOpenPointInTimeRequest- See Also:
- Documentation on elastic.co
-
ping
Returns whether the cluster is running.- See Also:
- Documentation on elastic.co
-
putScript
public java.util.concurrent.CompletableFuture<PutScriptResponse> putScript(PutScriptRequest request)Creates or updates a script.- See Also:
- Documentation on elastic.co
-
putScript
public final java.util.concurrent.CompletableFuture<PutScriptResponse> putScript(java.util.function.Function<PutScriptRequest.Builder,ObjectBuilder<PutScriptRequest>> fn)Creates or updates a script.- Parameters:
fn- a function that initializes a builder to create thePutScriptRequest- See Also:
- Documentation on elastic.co
-
rankEval
Allows to evaluate the quality of ranked search results over a set of typical search queries- See Also:
- Documentation on elastic.co
-
rankEval
public final java.util.concurrent.CompletableFuture<RankEvalResponse> rankEval(java.util.function.Function<RankEvalRequest.Builder,ObjectBuilder<RankEvalRequest>> fn)Allows to evaluate the quality of ranked search results over a set of typical search queries- Parameters:
fn- a function that initializes a builder to create theRankEvalRequest- See Also:
- Documentation on elastic.co
-
reindex
Allows to copy documents from one index to another, optionally filtering the source documents by a query, changing the destination index settings, or fetching the documents from a remote cluster.- See Also:
- Documentation on elastic.co
-
reindex
public final java.util.concurrent.CompletableFuture<ReindexResponse> reindex(java.util.function.Function<ReindexRequest.Builder,ObjectBuilder<ReindexRequest>> fn)Allows to copy documents from one index to another, optionally filtering the source documents by a query, changing the destination index settings, or fetching the documents from a remote cluster.- Parameters:
fn- a function that initializes a builder to create theReindexRequest- See Also:
- Documentation on elastic.co
-
reindexRethrottle
public java.util.concurrent.CompletableFuture<ReindexRethrottleResponse> reindexRethrottle(ReindexRethrottleRequest request)Changes the number of requests per second for a particular Reindex operation.- See Also:
- Documentation on elastic.co
-
reindexRethrottle
public final java.util.concurrent.CompletableFuture<ReindexRethrottleResponse> reindexRethrottle(java.util.function.Function<ReindexRethrottleRequest.Builder,ObjectBuilder<ReindexRethrottleRequest>> fn)Changes the number of requests per second for a particular Reindex operation.- Parameters:
fn- a function that initializes a builder to create theReindexRethrottleRequest- See Also:
- Documentation on elastic.co
-
renderSearchTemplate
public java.util.concurrent.CompletableFuture<RenderSearchTemplateResponse> renderSearchTemplate(RenderSearchTemplateRequest request)Allows to use the Mustache language to pre-render a search definition.- See Also:
- Documentation on elastic.co
-
renderSearchTemplate
public final java.util.concurrent.CompletableFuture<RenderSearchTemplateResponse> renderSearchTemplate(java.util.function.Function<RenderSearchTemplateRequest.Builder,ObjectBuilder<RenderSearchTemplateRequest>> fn)Allows to use the Mustache language to pre-render a search definition.- Parameters:
fn- a function that initializes a builder to create theRenderSearchTemplateRequest- See Also:
- Documentation on elastic.co
-
renderSearchTemplate
Allows to use the Mustache language to pre-render a search definition.- See Also:
- Documentation on elastic.co
-
scriptsPainlessExecute
public <TResult> java.util.concurrent.CompletableFuture<ScriptsPainlessExecuteResponse<TResult>> scriptsPainlessExecute(ScriptsPainlessExecuteRequest request, java.lang.Class<TResult> tResultClass)Allows an arbitrary script to be executed and a result to be returned- See Also:
- Documentation on elastic.co
-
scriptsPainlessExecute
public final <TResult> java.util.concurrent.CompletableFuture<ScriptsPainlessExecuteResponse<TResult>> scriptsPainlessExecute(java.util.function.Function<ScriptsPainlessExecuteRequest.Builder,ObjectBuilder<ScriptsPainlessExecuteRequest>> fn, java.lang.Class<TResult> tResultClass)Allows an arbitrary script to be executed and a result to be returned- Parameters:
fn- a function that initializes a builder to create theScriptsPainlessExecuteRequest- See Also:
- Documentation on elastic.co
-
scroll
public <TDocument> java.util.concurrent.CompletableFuture<ScrollResponse<TDocument>> scroll(ScrollRequest request, java.lang.Class<TDocument> tDocumentClass)Allows to retrieve a large numbers of results from a single search request.- See Also:
- Documentation on elastic.co
-
scroll
public final <TDocument> java.util.concurrent.CompletableFuture<ScrollResponse<TDocument>> scroll(java.util.function.Function<ScrollRequest.Builder,ObjectBuilder<ScrollRequest>> fn, java.lang.Class<TDocument> tDocumentClass)Allows to retrieve a large numbers of results from a single search request.- Parameters:
fn- a function that initializes a builder to create theScrollRequest- See Also:
- Documentation on elastic.co
-
search
public <TDocument> java.util.concurrent.CompletableFuture<SearchResponse<TDocument>> search(SearchRequest request, java.lang.Class<TDocument> tDocumentClass)Returns results matching a query.- See Also:
- Documentation on elastic.co
-
search
public final <TDocument> java.util.concurrent.CompletableFuture<SearchResponse<TDocument>> search(java.util.function.Function<SearchRequest.Builder,ObjectBuilder<SearchRequest>> fn, java.lang.Class<TDocument> tDocumentClass)Returns results matching a query.- Parameters:
fn- a function that initializes a builder to create theSearchRequest- See Also:
- Documentation on elastic.co
-
searchShards
public java.util.concurrent.CompletableFuture<SearchShardsResponse> searchShards(SearchShardsRequest request)Returns information about the indices and shards that a search request would be executed against.- See Also:
- Documentation on elastic.co
-
searchShards
public final java.util.concurrent.CompletableFuture<SearchShardsResponse> searchShards(java.util.function.Function<SearchShardsRequest.Builder,ObjectBuilder<SearchShardsRequest>> fn)Returns information about the indices and shards that a search request would be executed against.- Parameters:
fn- a function that initializes a builder to create theSearchShardsRequest- See Also:
- Documentation on elastic.co
-
searchShards
Returns information about the indices and shards that a search request would be executed against.- See Also:
- Documentation on elastic.co
-
searchTemplate
public <TDocument> java.util.concurrent.CompletableFuture<SearchTemplateResponse<TDocument>> searchTemplate(SearchTemplateRequest request, java.lang.Class<TDocument> tDocumentClass)Allows to use the Mustache language to pre-render a search definition.- See Also:
- Documentation on elastic.co
-
searchTemplate
public final <TDocument> java.util.concurrent.CompletableFuture<SearchTemplateResponse<TDocument>> searchTemplate(java.util.function.Function<SearchTemplateRequest.Builder,ObjectBuilder<SearchTemplateRequest>> fn, java.lang.Class<TDocument> tDocumentClass)Allows to use the Mustache language to pre-render a search definition.- Parameters:
fn- a function that initializes a builder to create theSearchTemplateRequest- See Also:
- Documentation on elastic.co
-
termsEnum
public java.util.concurrent.CompletableFuture<TermsEnumResponse> termsEnum(TermsEnumRequest request)The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios.- See Also:
- Documentation on elastic.co
-
termsEnum
public final java.util.concurrent.CompletableFuture<TermsEnumResponse> termsEnum(java.util.function.Function<TermsEnumRequest.Builder,ObjectBuilder<TermsEnumRequest>> fn)The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios.- Parameters:
fn- a function that initializes a builder to create theTermsEnumRequest- See Also:
- Documentation on elastic.co
-
termvectors
public <TDocument> java.util.concurrent.CompletableFuture<TermvectorsResponse> termvectors(TermvectorsRequest<TDocument> request)Returns information and statistics about terms in the fields of a particular document.- See Also:
- Documentation on elastic.co
-
termvectors
public final <TDocument> java.util.concurrent.CompletableFuture<TermvectorsResponse> termvectors(java.util.function.Function<TermvectorsRequest.Builder<TDocument>,ObjectBuilder<TermvectorsRequest<TDocument>>> fn)Returns information and statistics about terms in the fields of a particular document.- Parameters:
fn- a function that initializes a builder to create theTermvectorsRequest- See Also:
- Documentation on elastic.co
-
update
public <TDocument, TPartialDocument> java.util.concurrent.CompletableFuture<UpdateResponse<TDocument>> update(UpdateRequest<TDocument,TPartialDocument> request, java.lang.Class<TDocument> tDocumentClass)Updates a document with a script or partial document.- See Also:
- Documentation on elastic.co
-
update
public final <TDocument, TPartialDocument> java.util.concurrent.CompletableFuture<UpdateResponse<TDocument>> update(java.util.function.Function<UpdateRequest.Builder<TDocument,TPartialDocument>,ObjectBuilder<UpdateRequest<TDocument,TPartialDocument>>> fn, java.lang.Class<TDocument> tDocumentClass)Updates a document with a script or partial document.- Parameters:
fn- a function that initializes a builder to create theUpdateRequest- See Also:
- Documentation on elastic.co
-
updateByQuery
public java.util.concurrent.CompletableFuture<UpdateByQueryResponse> updateByQuery(UpdateByQueryRequest request)Performs an update on every document in the index without changing the source, for example to pick up a mapping change.- See Also:
- Documentation on elastic.co
-
updateByQuery
public final java.util.concurrent.CompletableFuture<UpdateByQueryResponse> updateByQuery(java.util.function.Function<UpdateByQueryRequest.Builder,ObjectBuilder<UpdateByQueryRequest>> fn)Performs an update on every document in the index without changing the source, for example to pick up a mapping change.- Parameters:
fn- a function that initializes a builder to create theUpdateByQueryRequest- See Also:
- Documentation on elastic.co
-
updateByQueryRethrottle
public java.util.concurrent.CompletableFuture<UpdateByQueryRethrottleResponse> updateByQueryRethrottle(UpdateByQueryRethrottleRequest request)Changes the number of requests per second for a particular Update By Query operation.- See Also:
- Documentation on elastic.co
-
updateByQueryRethrottle
public final java.util.concurrent.CompletableFuture<UpdateByQueryRethrottleResponse> updateByQueryRethrottle(java.util.function.Function<UpdateByQueryRethrottleRequest.Builder,ObjectBuilder<UpdateByQueryRethrottleRequest>> fn)Changes the number of requests per second for a particular Update By Query operation.- Parameters:
fn- a function that initializes a builder to create theUpdateByQueryRethrottleRequest- See Also:
- Documentation on elastic.co
-