Class ElasticsearchIndicesAsyncClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchIndicesAsyncClient>
co.elastic.clients.elasticsearch.indices.ElasticsearchIndicesAsyncClient
public class ElasticsearchIndicesAsyncClient extends ApiClient<ElasticsearchTransport,ElasticsearchIndicesAsyncClient>
Client for the indices namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
Constructors Constructor Description ElasticsearchIndicesAsyncClient(ElasticsearchTransport transport)
ElasticsearchIndicesAsyncClient(ElasticsearchTransport transport, TransportOptions transportOptions)
-
Method Summary
Modifier and Type Method Description java.util.concurrent.CompletableFuture<AddBlockResponse>
addBlock(AddBlockRequest request)
Adds a block to an index.java.util.concurrent.CompletableFuture<AddBlockResponse>
addBlock(java.util.function.Function<AddBlockRequest.Builder,ObjectBuilder<AddBlockRequest>> fn)
Adds a block to an index.java.util.concurrent.CompletableFuture<AnalyzeResponse>
analyze()
Performs the analysis process on a text and return the tokens breakdown of the text.java.util.concurrent.CompletableFuture<AnalyzeResponse>
analyze(AnalyzeRequest request)
Performs the analysis process on a text and return the tokens breakdown of the text.java.util.concurrent.CompletableFuture<AnalyzeResponse>
analyze(java.util.function.Function<AnalyzeRequest.Builder,ObjectBuilder<AnalyzeRequest>> fn)
Performs the analysis process on a text and return the tokens breakdown of the text.java.util.concurrent.CompletableFuture<ClearCacheResponse>
clearCache()
Clears all or specific caches for one or more indices.java.util.concurrent.CompletableFuture<ClearCacheResponse>
clearCache(ClearCacheRequest request)
Clears all or specific caches for one or more indices.java.util.concurrent.CompletableFuture<ClearCacheResponse>
clearCache(java.util.function.Function<ClearCacheRequest.Builder,ObjectBuilder<ClearCacheRequest>> fn)
Clears all or specific caches for one or more indices.java.util.concurrent.CompletableFuture<CloneIndexResponse>
clone(CloneIndexRequest request)
Clones an indexjava.util.concurrent.CompletableFuture<CloneIndexResponse>
clone(java.util.function.Function<CloneIndexRequest.Builder,ObjectBuilder<CloneIndexRequest>> fn)
Clones an indexjava.util.concurrent.CompletableFuture<CloseIndexResponse>
close(CloseIndexRequest request)
Closes an index.java.util.concurrent.CompletableFuture<CloseIndexResponse>
close(java.util.function.Function<CloseIndexRequest.Builder,ObjectBuilder<CloseIndexRequest>> fn)
Closes an index.java.util.concurrent.CompletableFuture<CreateIndexResponse>
create(CreateIndexRequest request)
Creates an index with optional settings and mappings.java.util.concurrent.CompletableFuture<CreateIndexResponse>
create(java.util.function.Function<CreateIndexRequest.Builder,ObjectBuilder<CreateIndexRequest>> fn)
Creates an index with optional settings and mappings.java.util.concurrent.CompletableFuture<CreateDataStreamResponse>
createDataStream(CreateDataStreamRequest request)
Creates a data streamjava.util.concurrent.CompletableFuture<CreateDataStreamResponse>
createDataStream(java.util.function.Function<CreateDataStreamRequest.Builder,ObjectBuilder<CreateDataStreamRequest>> fn)
Creates a data streamjava.util.concurrent.CompletableFuture<DataStreamsStatsResponse>
dataStreamsStats()
Provides statistics on operations happening in a data stream.java.util.concurrent.CompletableFuture<DataStreamsStatsResponse>
dataStreamsStats(DataStreamsStatsRequest request)
Provides statistics on operations happening in a data stream.java.util.concurrent.CompletableFuture<DataStreamsStatsResponse>
dataStreamsStats(java.util.function.Function<DataStreamsStatsRequest.Builder,ObjectBuilder<DataStreamsStatsRequest>> fn)
Provides statistics on operations happening in a data stream.java.util.concurrent.CompletableFuture<DeleteIndexResponse>
delete(DeleteIndexRequest request)
Deletes an index.java.util.concurrent.CompletableFuture<DeleteIndexResponse>
delete(java.util.function.Function<DeleteIndexRequest.Builder,ObjectBuilder<DeleteIndexRequest>> fn)
Deletes an index.java.util.concurrent.CompletableFuture<DeleteAliasResponse>
deleteAlias(DeleteAliasRequest request)
Deletes an alias.java.util.concurrent.CompletableFuture<DeleteAliasResponse>
deleteAlias(java.util.function.Function<DeleteAliasRequest.Builder,ObjectBuilder<DeleteAliasRequest>> fn)
Deletes an alias.java.util.concurrent.CompletableFuture<DeleteDataStreamResponse>
deleteDataStream(DeleteDataStreamRequest request)
Deletes a data stream.java.util.concurrent.CompletableFuture<DeleteDataStreamResponse>
deleteDataStream(java.util.function.Function<DeleteDataStreamRequest.Builder,ObjectBuilder<DeleteDataStreamRequest>> fn)
Deletes a data stream.java.util.concurrent.CompletableFuture<DeleteIndexTemplateResponse>
deleteIndexTemplate(DeleteIndexTemplateRequest request)
Deletes an index template.java.util.concurrent.CompletableFuture<DeleteIndexTemplateResponse>
deleteIndexTemplate(java.util.function.Function<DeleteIndexTemplateRequest.Builder,ObjectBuilder<DeleteIndexTemplateRequest>> fn)
Deletes an index template.java.util.concurrent.CompletableFuture<DeleteTemplateResponse>
deleteTemplate(DeleteTemplateRequest request)
Deletes an index template.java.util.concurrent.CompletableFuture<DeleteTemplateResponse>
deleteTemplate(java.util.function.Function<DeleteTemplateRequest.Builder,ObjectBuilder<DeleteTemplateRequest>> fn)
Deletes an index template.java.util.concurrent.CompletableFuture<DiskUsageResponse>
diskUsage(DiskUsageRequest request)
Analyzes the disk usage of each field of an index or data streamjava.util.concurrent.CompletableFuture<DiskUsageResponse>
diskUsage(java.util.function.Function<DiskUsageRequest.Builder,ObjectBuilder<DiskUsageRequest>> fn)
Analyzes the disk usage of each field of an index or data streamjava.util.concurrent.CompletableFuture<BooleanResponse>
exists(ExistsRequest request)
Returns information about whether a particular index exists.java.util.concurrent.CompletableFuture<BooleanResponse>
exists(java.util.function.Function<ExistsRequest.Builder,ObjectBuilder<ExistsRequest>> fn)
Returns information about whether a particular index exists.java.util.concurrent.CompletableFuture<BooleanResponse>
existsAlias(ExistsAliasRequest request)
Returns information about whether a particular alias exists.java.util.concurrent.CompletableFuture<BooleanResponse>
existsAlias(java.util.function.Function<ExistsAliasRequest.Builder,ObjectBuilder<ExistsAliasRequest>> fn)
Returns information about whether a particular alias exists.java.util.concurrent.CompletableFuture<BooleanResponse>
existsIndexTemplate(ExistsIndexTemplateRequest request)
Returns information about whether a particular index template exists.java.util.concurrent.CompletableFuture<BooleanResponse>
existsIndexTemplate(java.util.function.Function<ExistsIndexTemplateRequest.Builder,ObjectBuilder<ExistsIndexTemplateRequest>> fn)
Returns information about whether a particular index template exists.java.util.concurrent.CompletableFuture<BooleanResponse>
existsTemplate(ExistsTemplateRequest request)
Returns information about whether a particular index template exists.java.util.concurrent.CompletableFuture<BooleanResponse>
existsTemplate(java.util.function.Function<ExistsTemplateRequest.Builder,ObjectBuilder<ExistsTemplateRequest>> fn)
Returns information about whether a particular index template exists.java.util.concurrent.CompletableFuture<FlushResponse>
flush()
Performs the flush operation on one or more indices.java.util.concurrent.CompletableFuture<FlushResponse>
flush(FlushRequest request)
Performs the flush operation on one or more indices.java.util.concurrent.CompletableFuture<FlushResponse>
flush(java.util.function.Function<FlushRequest.Builder,ObjectBuilder<FlushRequest>> fn)
Performs the flush operation on one or more indices.java.util.concurrent.CompletableFuture<ForcemergeResponse>
forcemerge()
Performs the force merge operation on one or more indices.java.util.concurrent.CompletableFuture<ForcemergeResponse>
forcemerge(ForcemergeRequest request)
Performs the force merge operation on one or more indices.java.util.concurrent.CompletableFuture<ForcemergeResponse>
forcemerge(java.util.function.Function<ForcemergeRequest.Builder,ObjectBuilder<ForcemergeRequest>> fn)
Performs the force merge operation on one or more indices.java.util.concurrent.CompletableFuture<GetIndexResponse>
get(GetIndexRequest request)
Returns information about one or more indices.java.util.concurrent.CompletableFuture<GetIndexResponse>
get(java.util.function.Function<GetIndexRequest.Builder,ObjectBuilder<GetIndexRequest>> fn)
Returns information about one or more indices.java.util.concurrent.CompletableFuture<GetAliasResponse>
getAlias()
Returns an alias.java.util.concurrent.CompletableFuture<GetAliasResponse>
getAlias(GetAliasRequest request)
Returns an alias.java.util.concurrent.CompletableFuture<GetAliasResponse>
getAlias(java.util.function.Function<GetAliasRequest.Builder,ObjectBuilder<GetAliasRequest>> fn)
Returns an alias.java.util.concurrent.CompletableFuture<GetDataStreamResponse>
getDataStream()
Returns data streams.java.util.concurrent.CompletableFuture<GetDataStreamResponse>
getDataStream(GetDataStreamRequest request)
Returns data streams.java.util.concurrent.CompletableFuture<GetDataStreamResponse>
getDataStream(java.util.function.Function<GetDataStreamRequest.Builder,ObjectBuilder<GetDataStreamRequest>> fn)
Returns data streams.java.util.concurrent.CompletableFuture<GetFieldMappingResponse>
getFieldMapping(GetFieldMappingRequest request)
Returns mapping for one or more fields.java.util.concurrent.CompletableFuture<GetFieldMappingResponse>
getFieldMapping(java.util.function.Function<GetFieldMappingRequest.Builder,ObjectBuilder<GetFieldMappingRequest>> fn)
Returns mapping for one or more fields.java.util.concurrent.CompletableFuture<GetIndexTemplateResponse>
getIndexTemplate()
Returns an index template.java.util.concurrent.CompletableFuture<GetIndexTemplateResponse>
getIndexTemplate(GetIndexTemplateRequest request)
Returns an index template.java.util.concurrent.CompletableFuture<GetIndexTemplateResponse>
getIndexTemplate(java.util.function.Function<GetIndexTemplateRequest.Builder,ObjectBuilder<GetIndexTemplateRequest>> fn)
Returns an index template.java.util.concurrent.CompletableFuture<GetMappingResponse>
getMapping()
Returns mappings for one or more indices.java.util.concurrent.CompletableFuture<GetMappingResponse>
getMapping(GetMappingRequest request)
Returns mappings for one or more indices.java.util.concurrent.CompletableFuture<GetMappingResponse>
getMapping(java.util.function.Function<GetMappingRequest.Builder,ObjectBuilder<GetMappingRequest>> fn)
Returns mappings for one or more indices.java.util.concurrent.CompletableFuture<GetIndicesSettingsResponse>
getSettings()
Returns settings for one or more indices.java.util.concurrent.CompletableFuture<GetIndicesSettingsResponse>
getSettings(GetIndicesSettingsRequest request)
Returns settings for one or more indices.java.util.concurrent.CompletableFuture<GetIndicesSettingsResponse>
getSettings(java.util.function.Function<GetIndicesSettingsRequest.Builder,ObjectBuilder<GetIndicesSettingsRequest>> fn)
Returns settings for one or more indices.java.util.concurrent.CompletableFuture<GetTemplateResponse>
getTemplate()
Returns an index template.java.util.concurrent.CompletableFuture<GetTemplateResponse>
getTemplate(GetTemplateRequest request)
Returns an index template.java.util.concurrent.CompletableFuture<GetTemplateResponse>
getTemplate(java.util.function.Function<GetTemplateRequest.Builder,ObjectBuilder<GetTemplateRequest>> fn)
Returns an index template.java.util.concurrent.CompletableFuture<MigrateToDataStreamResponse>
migrateToDataStream(MigrateToDataStreamRequest request)
Migrates an alias to a data streamjava.util.concurrent.CompletableFuture<MigrateToDataStreamResponse>
migrateToDataStream(java.util.function.Function<MigrateToDataStreamRequest.Builder,ObjectBuilder<MigrateToDataStreamRequest>> fn)
Migrates an alias to a data streamjava.util.concurrent.CompletableFuture<OpenResponse>
open(OpenRequest request)
Opens an index.java.util.concurrent.CompletableFuture<OpenResponse>
open(java.util.function.Function<OpenRequest.Builder,ObjectBuilder<OpenRequest>> fn)
Opens an index.java.util.concurrent.CompletableFuture<PromoteDataStreamResponse>
promoteDataStream(PromoteDataStreamRequest request)
Promotes a data stream from a replicated data stream managed by CCR to a regular data streamjava.util.concurrent.CompletableFuture<PromoteDataStreamResponse>
promoteDataStream(java.util.function.Function<PromoteDataStreamRequest.Builder,ObjectBuilder<PromoteDataStreamRequest>> fn)
Promotes a data stream from a replicated data stream managed by CCR to a regular data streamjava.util.concurrent.CompletableFuture<PutAliasResponse>
putAlias(PutAliasRequest request)
Creates or updates an alias.java.util.concurrent.CompletableFuture<PutAliasResponse>
putAlias(java.util.function.Function<PutAliasRequest.Builder,ObjectBuilder<PutAliasRequest>> fn)
Creates or updates an alias.java.util.concurrent.CompletableFuture<PutIndexTemplateResponse>
putIndexTemplate(PutIndexTemplateRequest request)
Creates or updates an index template.java.util.concurrent.CompletableFuture<PutIndexTemplateResponse>
putIndexTemplate(java.util.function.Function<PutIndexTemplateRequest.Builder,ObjectBuilder<PutIndexTemplateRequest>> fn)
Creates or updates an index template.java.util.concurrent.CompletableFuture<PutMappingResponse>
putMapping(PutMappingRequest request)
Updates the index mappings.java.util.concurrent.CompletableFuture<PutMappingResponse>
putMapping(java.util.function.Function<PutMappingRequest.Builder,ObjectBuilder<PutMappingRequest>> fn)
Updates the index mappings.java.util.concurrent.CompletableFuture<PutIndicesSettingsResponse>
putSettings()
Updates the index settings.java.util.concurrent.CompletableFuture<PutIndicesSettingsResponse>
putSettings(PutIndicesSettingsRequest request)
Updates the index settings.java.util.concurrent.CompletableFuture<PutIndicesSettingsResponse>
putSettings(java.util.function.Function<PutIndicesSettingsRequest.Builder,ObjectBuilder<PutIndicesSettingsRequest>> fn)
Updates the index settings.java.util.concurrent.CompletableFuture<PutTemplateResponse>
putTemplate(PutTemplateRequest request)
Creates or updates an index template.java.util.concurrent.CompletableFuture<PutTemplateResponse>
putTemplate(java.util.function.Function<PutTemplateRequest.Builder,ObjectBuilder<PutTemplateRequest>> fn)
Creates or updates an index template.java.util.concurrent.CompletableFuture<RecoveryResponse>
recovery()
Returns information about ongoing index shard recoveries.java.util.concurrent.CompletableFuture<RecoveryResponse>
recovery(RecoveryRequest request)
Returns information about ongoing index shard recoveries.java.util.concurrent.CompletableFuture<RecoveryResponse>
recovery(java.util.function.Function<RecoveryRequest.Builder,ObjectBuilder<RecoveryRequest>> fn)
Returns information about ongoing index shard recoveries.java.util.concurrent.CompletableFuture<RefreshResponse>
refresh()
Performs the refresh operation in one or more indices.java.util.concurrent.CompletableFuture<RefreshResponse>
refresh(RefreshRequest request)
Performs the refresh operation in one or more indices.java.util.concurrent.CompletableFuture<RefreshResponse>
refresh(java.util.function.Function<RefreshRequest.Builder,ObjectBuilder<RefreshRequest>> fn)
Performs the refresh operation in one or more indices.java.util.concurrent.CompletableFuture<ReloadSearchAnalyzersResponse>
reloadSearchAnalyzers(ReloadSearchAnalyzersRequest request)
Reloads an index's search analyzers and their resources.java.util.concurrent.CompletableFuture<ReloadSearchAnalyzersResponse>
reloadSearchAnalyzers(java.util.function.Function<ReloadSearchAnalyzersRequest.Builder,ObjectBuilder<ReloadSearchAnalyzersRequest>> fn)
Reloads an index's search analyzers and their resources.java.util.concurrent.CompletableFuture<ResolveIndexResponse>
resolveIndex(ResolveIndexRequest request)
Returns information about any matching indices, aliases, and data streamsjava.util.concurrent.CompletableFuture<ResolveIndexResponse>
resolveIndex(java.util.function.Function<ResolveIndexRequest.Builder,ObjectBuilder<ResolveIndexRequest>> fn)
Returns information about any matching indices, aliases, and data streamsjava.util.concurrent.CompletableFuture<RolloverResponse>
rollover(RolloverRequest request)
Updates an alias to point to a new index when the existing index is considered to be too large or too old.java.util.concurrent.CompletableFuture<RolloverResponse>
rollover(java.util.function.Function<RolloverRequest.Builder,ObjectBuilder<RolloverRequest>> fn)
Updates an alias to point to a new index when the existing index is considered to be too large or too old.java.util.concurrent.CompletableFuture<SegmentsResponse>
segments()
Provides low-level information about segments in a Lucene index.java.util.concurrent.CompletableFuture<SegmentsResponse>
segments(SegmentsRequest request)
Provides low-level information about segments in a Lucene index.java.util.concurrent.CompletableFuture<SegmentsResponse>
segments(java.util.function.Function<SegmentsRequest.Builder,ObjectBuilder<SegmentsRequest>> fn)
Provides low-level information about segments in a Lucene index.java.util.concurrent.CompletableFuture<ShardStoresResponse>
shardStores()
Provides store information for shard copies of indices.java.util.concurrent.CompletableFuture<ShardStoresResponse>
shardStores(ShardStoresRequest request)
Provides store information for shard copies of indices.java.util.concurrent.CompletableFuture<ShardStoresResponse>
shardStores(java.util.function.Function<ShardStoresRequest.Builder,ObjectBuilder<ShardStoresRequest>> fn)
Provides store information for shard copies of indices.java.util.concurrent.CompletableFuture<ShrinkResponse>
shrink(ShrinkRequest request)
Allow to shrink an existing index into a new index with fewer primary shards.java.util.concurrent.CompletableFuture<ShrinkResponse>
shrink(java.util.function.Function<ShrinkRequest.Builder,ObjectBuilder<ShrinkRequest>> fn)
Allow to shrink an existing index into a new index with fewer primary shards.java.util.concurrent.CompletableFuture<SimulateIndexTemplateResponse>
simulateIndexTemplate(SimulateIndexTemplateRequest request)
Simulate matching the given index name against the index templates in the systemjava.util.concurrent.CompletableFuture<SimulateIndexTemplateResponse>
simulateIndexTemplate(java.util.function.Function<SimulateIndexTemplateRequest.Builder,ObjectBuilder<SimulateIndexTemplateRequest>> fn)
Simulate matching the given index name against the index templates in the systemjava.util.concurrent.CompletableFuture<SimulateTemplateResponse>
simulateTemplate()
Simulate resolving the given template name or bodyjava.util.concurrent.CompletableFuture<SimulateTemplateResponse>
simulateTemplate(SimulateTemplateRequest request)
Simulate resolving the given template name or bodyjava.util.concurrent.CompletableFuture<SimulateTemplateResponse>
simulateTemplate(java.util.function.Function<SimulateTemplateRequest.Builder,ObjectBuilder<SimulateTemplateRequest>> fn)
Simulate resolving the given template name or bodyjava.util.concurrent.CompletableFuture<SplitResponse>
split(SplitRequest request)
Allows you to split an existing index into a new index with more primary shards.java.util.concurrent.CompletableFuture<SplitResponse>
split(java.util.function.Function<SplitRequest.Builder,ObjectBuilder<SplitRequest>> fn)
Allows you to split an existing index into a new index with more primary shards.java.util.concurrent.CompletableFuture<IndicesStatsResponse>
stats()
Provides statistics on operations happening in an index.java.util.concurrent.CompletableFuture<IndicesStatsResponse>
stats(IndicesStatsRequest request)
Provides statistics on operations happening in an index.java.util.concurrent.CompletableFuture<IndicesStatsResponse>
stats(java.util.function.Function<IndicesStatsRequest.Builder,ObjectBuilder<IndicesStatsRequest>> fn)
Provides statistics on operations happening in an index.java.util.concurrent.CompletableFuture<UnfreezeResponse>
unfreeze(UnfreezeRequest request)
Unfreezes an index.java.util.concurrent.CompletableFuture<UnfreezeResponse>
unfreeze(java.util.function.Function<UnfreezeRequest.Builder,ObjectBuilder<UnfreezeRequest>> fn)
Unfreezes an index.java.util.concurrent.CompletableFuture<UpdateAliasesResponse>
updateAliases()
Updates index aliases.java.util.concurrent.CompletableFuture<UpdateAliasesResponse>
updateAliases(UpdateAliasesRequest request)
Updates index aliases.java.util.concurrent.CompletableFuture<UpdateAliasesResponse>
updateAliases(java.util.function.Function<UpdateAliasesRequest.Builder,ObjectBuilder<UpdateAliasesRequest>> fn)
Updates index aliases.java.util.concurrent.CompletableFuture<ValidateQueryResponse>
validateQuery()
Allows a user to validate a potentially expensive query without executing it.java.util.concurrent.CompletableFuture<ValidateQueryResponse>
validateQuery(ValidateQueryRequest request)
Allows a user to validate a potentially expensive query without executing it.java.util.concurrent.CompletableFuture<ValidateQueryResponse>
validateQuery(java.util.function.Function<ValidateQueryRequest.Builder,ObjectBuilder<ValidateQueryRequest>> fn)
Allows a user to validate a potentially expensive query without executing it.ElasticsearchIndicesAsyncClient
withTransportOptions(TransportOptions transportOptions)
Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_transport, _transportOptions, getDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchIndicesAsyncClient
-
ElasticsearchIndicesAsyncClient
public ElasticsearchIndicesAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchIndicesAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions)Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,ElasticsearchIndicesAsyncClient>
-
addBlock
Adds a block to an index.- See Also:
- Documentation on elastic.co
-
addBlock
public final java.util.concurrent.CompletableFuture<AddBlockResponse> addBlock(java.util.function.Function<AddBlockRequest.Builder,ObjectBuilder<AddBlockRequest>> fn)Adds a block to an index.- Parameters:
fn
- a function that initializes a builder to create theAddBlockRequest
- See Also:
- Documentation on elastic.co
-
analyze
Performs the analysis process on a text and return the tokens breakdown of the text.- See Also:
- Documentation on elastic.co
-
analyze
public final java.util.concurrent.CompletableFuture<AnalyzeResponse> analyze(java.util.function.Function<AnalyzeRequest.Builder,ObjectBuilder<AnalyzeRequest>> fn)Performs the analysis process on a text and return the tokens breakdown of the text.- Parameters:
fn
- a function that initializes a builder to create theAnalyzeRequest
- See Also:
- Documentation on elastic.co
-
analyze
Performs the analysis process on a text and return the tokens breakdown of the text.- See Also:
- Documentation on elastic.co
-
clearCache
public java.util.concurrent.CompletableFuture<ClearCacheResponse> clearCache(ClearCacheRequest request)Clears all or specific caches for one or more indices.- See Also:
- Documentation on elastic.co
-
clearCache
public final java.util.concurrent.CompletableFuture<ClearCacheResponse> clearCache(java.util.function.Function<ClearCacheRequest.Builder,ObjectBuilder<ClearCacheRequest>> fn)Clears all or specific caches for one or more indices.- Parameters:
fn
- a function that initializes a builder to create theClearCacheRequest
- See Also:
- Documentation on elastic.co
-
clearCache
Clears all or specific caches for one or more indices.- See Also:
- Documentation on elastic.co
-
clone
Clones an index- See Also:
- Documentation on elastic.co
-
clone
public final java.util.concurrent.CompletableFuture<CloneIndexResponse> clone(java.util.function.Function<CloneIndexRequest.Builder,ObjectBuilder<CloneIndexRequest>> fn)Clones an index- Parameters:
fn
- a function that initializes a builder to create theCloneIndexRequest
- See Also:
- Documentation on elastic.co
-
close
Closes an index.- See Also:
- Documentation on elastic.co
-
close
public final java.util.concurrent.CompletableFuture<CloseIndexResponse> close(java.util.function.Function<CloseIndexRequest.Builder,ObjectBuilder<CloseIndexRequest>> fn)Closes an index.- Parameters:
fn
- a function that initializes a builder to create theCloseIndexRequest
- See Also:
- Documentation on elastic.co
-
create
public java.util.concurrent.CompletableFuture<CreateIndexResponse> create(CreateIndexRequest request)Creates an index with optional settings and mappings.- See Also:
- Documentation on elastic.co
-
create
public final java.util.concurrent.CompletableFuture<CreateIndexResponse> create(java.util.function.Function<CreateIndexRequest.Builder,ObjectBuilder<CreateIndexRequest>> fn)Creates an index with optional settings and mappings.- Parameters:
fn
- a function that initializes a builder to create theCreateIndexRequest
- See Also:
- Documentation on elastic.co
-
createDataStream
public java.util.concurrent.CompletableFuture<CreateDataStreamResponse> createDataStream(CreateDataStreamRequest request)Creates a data stream- See Also:
- Documentation on elastic.co
-
createDataStream
public final java.util.concurrent.CompletableFuture<CreateDataStreamResponse> createDataStream(java.util.function.Function<CreateDataStreamRequest.Builder,ObjectBuilder<CreateDataStreamRequest>> fn)Creates a data stream- Parameters:
fn
- a function that initializes a builder to create theCreateDataStreamRequest
- See Also:
- Documentation on elastic.co
-
dataStreamsStats
public java.util.concurrent.CompletableFuture<DataStreamsStatsResponse> dataStreamsStats(DataStreamsStatsRequest request)Provides statistics on operations happening in a data stream.- See Also:
- Documentation on elastic.co
-
dataStreamsStats
public final java.util.concurrent.CompletableFuture<DataStreamsStatsResponse> dataStreamsStats(java.util.function.Function<DataStreamsStatsRequest.Builder,ObjectBuilder<DataStreamsStatsRequest>> fn)Provides statistics on operations happening in a data stream.- Parameters:
fn
- a function that initializes a builder to create theDataStreamsStatsRequest
- See Also:
- Documentation on elastic.co
-
dataStreamsStats
Provides statistics on operations happening in a data stream.- See Also:
- Documentation on elastic.co
-
delete
public java.util.concurrent.CompletableFuture<DeleteIndexResponse> delete(DeleteIndexRequest request)Deletes an index.- See Also:
- Documentation on elastic.co
-
delete
public final java.util.concurrent.CompletableFuture<DeleteIndexResponse> delete(java.util.function.Function<DeleteIndexRequest.Builder,ObjectBuilder<DeleteIndexRequest>> fn)Deletes an index.- Parameters:
fn
- a function that initializes a builder to create theDeleteIndexRequest
- See Also:
- Documentation on elastic.co
-
deleteAlias
public java.util.concurrent.CompletableFuture<DeleteAliasResponse> deleteAlias(DeleteAliasRequest request)Deletes an alias.- See Also:
- Documentation on elastic.co
-
deleteAlias
public final java.util.concurrent.CompletableFuture<DeleteAliasResponse> deleteAlias(java.util.function.Function<DeleteAliasRequest.Builder,ObjectBuilder<DeleteAliasRequest>> fn)Deletes an alias.- Parameters:
fn
- a function that initializes a builder to create theDeleteAliasRequest
- See Also:
- Documentation on elastic.co
-
deleteDataStream
public java.util.concurrent.CompletableFuture<DeleteDataStreamResponse> deleteDataStream(DeleteDataStreamRequest request)Deletes a data stream.- See Also:
- Documentation on elastic.co
-
deleteDataStream
public final java.util.concurrent.CompletableFuture<DeleteDataStreamResponse> deleteDataStream(java.util.function.Function<DeleteDataStreamRequest.Builder,ObjectBuilder<DeleteDataStreamRequest>> fn)Deletes a data stream.- Parameters:
fn
- a function that initializes a builder to create theDeleteDataStreamRequest
- See Also:
- Documentation on elastic.co
-
deleteIndexTemplate
public java.util.concurrent.CompletableFuture<DeleteIndexTemplateResponse> deleteIndexTemplate(DeleteIndexTemplateRequest request)Deletes an index template.- See Also:
- Documentation on elastic.co
-
deleteIndexTemplate
public final java.util.concurrent.CompletableFuture<DeleteIndexTemplateResponse> deleteIndexTemplate(java.util.function.Function<DeleteIndexTemplateRequest.Builder,ObjectBuilder<DeleteIndexTemplateRequest>> fn)Deletes an index template.- Parameters:
fn
- a function that initializes a builder to create theDeleteIndexTemplateRequest
- See Also:
- Documentation on elastic.co
-
deleteTemplate
public java.util.concurrent.CompletableFuture<DeleteTemplateResponse> deleteTemplate(DeleteTemplateRequest request)Deletes an index template.- See Also:
- Documentation on elastic.co
-
deleteTemplate
public final java.util.concurrent.CompletableFuture<DeleteTemplateResponse> deleteTemplate(java.util.function.Function<DeleteTemplateRequest.Builder,ObjectBuilder<DeleteTemplateRequest>> fn)Deletes an index template.- Parameters:
fn
- a function that initializes a builder to create theDeleteTemplateRequest
- See Also:
- Documentation on elastic.co
-
diskUsage
public java.util.concurrent.CompletableFuture<DiskUsageResponse> diskUsage(DiskUsageRequest request)Analyzes the disk usage of each field of an index or data stream- See Also:
- Documentation on elastic.co
-
diskUsage
public final java.util.concurrent.CompletableFuture<DiskUsageResponse> diskUsage(java.util.function.Function<DiskUsageRequest.Builder,ObjectBuilder<DiskUsageRequest>> fn)Analyzes the disk usage of each field of an index or data stream- Parameters:
fn
- a function that initializes a builder to create theDiskUsageRequest
- See Also:
- Documentation on elastic.co
-
exists
Returns information about whether a particular index exists.- 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 particular index exists.- Parameters:
fn
- a function that initializes a builder to create theExistsRequest
- See Also:
- Documentation on elastic.co
-
existsAlias
public java.util.concurrent.CompletableFuture<BooleanResponse> existsAlias(ExistsAliasRequest request)Returns information about whether a particular alias exists.- See Also:
- Documentation on elastic.co
-
existsAlias
public final java.util.concurrent.CompletableFuture<BooleanResponse> existsAlias(java.util.function.Function<ExistsAliasRequest.Builder,ObjectBuilder<ExistsAliasRequest>> fn)Returns information about whether a particular alias exists.- Parameters:
fn
- a function that initializes a builder to create theExistsAliasRequest
- See Also:
- Documentation on elastic.co
-
existsIndexTemplate
public java.util.concurrent.CompletableFuture<BooleanResponse> existsIndexTemplate(ExistsIndexTemplateRequest request)Returns information about whether a particular index template exists.- See Also:
- Documentation on elastic.co
-
existsIndexTemplate
public final java.util.concurrent.CompletableFuture<BooleanResponse> existsIndexTemplate(java.util.function.Function<ExistsIndexTemplateRequest.Builder,ObjectBuilder<ExistsIndexTemplateRequest>> fn)Returns information about whether a particular index template exists.- Parameters:
fn
- a function that initializes a builder to create theExistsIndexTemplateRequest
- See Also:
- Documentation on elastic.co
-
existsTemplate
public java.util.concurrent.CompletableFuture<BooleanResponse> existsTemplate(ExistsTemplateRequest request)Returns information about whether a particular index template exists.- See Also:
- Documentation on elastic.co
-
existsTemplate
public final java.util.concurrent.CompletableFuture<BooleanResponse> existsTemplate(java.util.function.Function<ExistsTemplateRequest.Builder,ObjectBuilder<ExistsTemplateRequest>> fn)Returns information about whether a particular index template exists.- Parameters:
fn
- a function that initializes a builder to create theExistsTemplateRequest
- See Also:
- Documentation on elastic.co
-
flush
Performs the flush operation on one or more indices.- See Also:
- Documentation on elastic.co
-
flush
public final java.util.concurrent.CompletableFuture<FlushResponse> flush(java.util.function.Function<FlushRequest.Builder,ObjectBuilder<FlushRequest>> fn)Performs the flush operation on one or more indices.- Parameters:
fn
- a function that initializes a builder to create theFlushRequest
- See Also:
- Documentation on elastic.co
-
flush
Performs the flush operation on one or more indices.- See Also:
- Documentation on elastic.co
-
forcemerge
public java.util.concurrent.CompletableFuture<ForcemergeResponse> forcemerge(ForcemergeRequest request)Performs the force merge operation on one or more indices.- See Also:
- Documentation on elastic.co
-
forcemerge
public final java.util.concurrent.CompletableFuture<ForcemergeResponse> forcemerge(java.util.function.Function<ForcemergeRequest.Builder,ObjectBuilder<ForcemergeRequest>> fn)Performs the force merge operation on one or more indices.- Parameters:
fn
- a function that initializes a builder to create theForcemergeRequest
- See Also:
- Documentation on elastic.co
-
forcemerge
Performs the force merge operation on one or more indices.- See Also:
- Documentation on elastic.co
-
get
Returns information about one or more indices.- See Also:
- Documentation on elastic.co
-
get
public final java.util.concurrent.CompletableFuture<GetIndexResponse> get(java.util.function.Function<GetIndexRequest.Builder,ObjectBuilder<GetIndexRequest>> fn)Returns information about one or more indices.- Parameters:
fn
- a function that initializes a builder to create theGetIndexRequest
- See Also:
- Documentation on elastic.co
-
getAlias
Returns an alias.- See Also:
- Documentation on elastic.co
-
getAlias
public final java.util.concurrent.CompletableFuture<GetAliasResponse> getAlias(java.util.function.Function<GetAliasRequest.Builder,ObjectBuilder<GetAliasRequest>> fn)Returns an alias.- Parameters:
fn
- a function that initializes a builder to create theGetAliasRequest
- See Also:
- Documentation on elastic.co
-
getAlias
Returns an alias.- See Also:
- Documentation on elastic.co
-
getDataStream
public java.util.concurrent.CompletableFuture<GetDataStreamResponse> getDataStream(GetDataStreamRequest request)Returns data streams.- See Also:
- Documentation on elastic.co
-
getDataStream
public final java.util.concurrent.CompletableFuture<GetDataStreamResponse> getDataStream(java.util.function.Function<GetDataStreamRequest.Builder,ObjectBuilder<GetDataStreamRequest>> fn)Returns data streams.- Parameters:
fn
- a function that initializes a builder to create theGetDataStreamRequest
- See Also:
- Documentation on elastic.co
-
getDataStream
Returns data streams.- See Also:
- Documentation on elastic.co
-
getFieldMapping
public java.util.concurrent.CompletableFuture<GetFieldMappingResponse> getFieldMapping(GetFieldMappingRequest request)Returns mapping for one or more fields.- See Also:
- Documentation on elastic.co
-
getFieldMapping
public final java.util.concurrent.CompletableFuture<GetFieldMappingResponse> getFieldMapping(java.util.function.Function<GetFieldMappingRequest.Builder,ObjectBuilder<GetFieldMappingRequest>> fn)Returns mapping for one or more fields.- Parameters:
fn
- a function that initializes a builder to create theGetFieldMappingRequest
- See Also:
- Documentation on elastic.co
-
getIndexTemplate
public java.util.concurrent.CompletableFuture<GetIndexTemplateResponse> getIndexTemplate(GetIndexTemplateRequest request)Returns an index template.- See Also:
- Documentation on elastic.co
-
getIndexTemplate
public final java.util.concurrent.CompletableFuture<GetIndexTemplateResponse> getIndexTemplate(java.util.function.Function<GetIndexTemplateRequest.Builder,ObjectBuilder<GetIndexTemplateRequest>> fn)Returns an index template.- Parameters:
fn
- a function that initializes a builder to create theGetIndexTemplateRequest
- See Also:
- Documentation on elastic.co
-
getIndexTemplate
Returns an index template.- See Also:
- Documentation on elastic.co
-
getMapping
public java.util.concurrent.CompletableFuture<GetMappingResponse> getMapping(GetMappingRequest request)Returns mappings for one or more indices.- See Also:
- Documentation on elastic.co
-
getMapping
public final java.util.concurrent.CompletableFuture<GetMappingResponse> getMapping(java.util.function.Function<GetMappingRequest.Builder,ObjectBuilder<GetMappingRequest>> fn)Returns mappings for one or more indices.- Parameters:
fn
- a function that initializes a builder to create theGetMappingRequest
- See Also:
- Documentation on elastic.co
-
getMapping
Returns mappings for one or more indices.- See Also:
- Documentation on elastic.co
-
getSettings
public java.util.concurrent.CompletableFuture<GetIndicesSettingsResponse> getSettings(GetIndicesSettingsRequest request)Returns settings for one or more indices.- See Also:
- Documentation on elastic.co
-
getSettings
public final java.util.concurrent.CompletableFuture<GetIndicesSettingsResponse> getSettings(java.util.function.Function<GetIndicesSettingsRequest.Builder,ObjectBuilder<GetIndicesSettingsRequest>> fn)Returns settings for one or more indices.- Parameters:
fn
- a function that initializes a builder to create theGetIndicesSettingsRequest
- See Also:
- Documentation on elastic.co
-
getSettings
Returns settings for one or more indices.- See Also:
- Documentation on elastic.co
-
getTemplate
public java.util.concurrent.CompletableFuture<GetTemplateResponse> getTemplate(GetTemplateRequest request)Returns an index template.- See Also:
- Documentation on elastic.co
-
getTemplate
public final java.util.concurrent.CompletableFuture<GetTemplateResponse> getTemplate(java.util.function.Function<GetTemplateRequest.Builder,ObjectBuilder<GetTemplateRequest>> fn)Returns an index template.- Parameters:
fn
- a function that initializes a builder to create theGetTemplateRequest
- See Also:
- Documentation on elastic.co
-
getTemplate
Returns an index template.- See Also:
- Documentation on elastic.co
-
migrateToDataStream
public java.util.concurrent.CompletableFuture<MigrateToDataStreamResponse> migrateToDataStream(MigrateToDataStreamRequest request)Migrates an alias to a data stream- See Also:
- Documentation on elastic.co
-
migrateToDataStream
public final java.util.concurrent.CompletableFuture<MigrateToDataStreamResponse> migrateToDataStream(java.util.function.Function<MigrateToDataStreamRequest.Builder,ObjectBuilder<MigrateToDataStreamRequest>> fn)Migrates an alias to a data stream- Parameters:
fn
- a function that initializes a builder to create theMigrateToDataStreamRequest
- See Also:
- Documentation on elastic.co
-
open
Opens an index.- See Also:
- Documentation on elastic.co
-
open
public final java.util.concurrent.CompletableFuture<OpenResponse> open(java.util.function.Function<OpenRequest.Builder,ObjectBuilder<OpenRequest>> fn)Opens an index.- Parameters:
fn
- a function that initializes a builder to create theOpenRequest
- See Also:
- Documentation on elastic.co
-
promoteDataStream
public java.util.concurrent.CompletableFuture<PromoteDataStreamResponse> promoteDataStream(PromoteDataStreamRequest request)Promotes a data stream from a replicated data stream managed by CCR to a regular data stream- See Also:
- Documentation on elastic.co
-
promoteDataStream
public final java.util.concurrent.CompletableFuture<PromoteDataStreamResponse> promoteDataStream(java.util.function.Function<PromoteDataStreamRequest.Builder,ObjectBuilder<PromoteDataStreamRequest>> fn)Promotes a data stream from a replicated data stream managed by CCR to a regular data stream- Parameters:
fn
- a function that initializes a builder to create thePromoteDataStreamRequest
- See Also:
- Documentation on elastic.co
-
putAlias
Creates or updates an alias.- See Also:
- Documentation on elastic.co
-
putAlias
public final java.util.concurrent.CompletableFuture<PutAliasResponse> putAlias(java.util.function.Function<PutAliasRequest.Builder,ObjectBuilder<PutAliasRequest>> fn)Creates or updates an alias.- Parameters:
fn
- a function that initializes a builder to create thePutAliasRequest
- See Also:
- Documentation on elastic.co
-
putIndexTemplate
public java.util.concurrent.CompletableFuture<PutIndexTemplateResponse> putIndexTemplate(PutIndexTemplateRequest request)Creates or updates an index template.- See Also:
- Documentation on elastic.co
-
putIndexTemplate
public final java.util.concurrent.CompletableFuture<PutIndexTemplateResponse> putIndexTemplate(java.util.function.Function<PutIndexTemplateRequest.Builder,ObjectBuilder<PutIndexTemplateRequest>> fn)Creates or updates an index template.- Parameters:
fn
- a function that initializes a builder to create thePutIndexTemplateRequest
- See Also:
- Documentation on elastic.co
-
putMapping
public java.util.concurrent.CompletableFuture<PutMappingResponse> putMapping(PutMappingRequest request)Updates the index mappings.- See Also:
- Documentation on elastic.co
-
putMapping
public final java.util.concurrent.CompletableFuture<PutMappingResponse> putMapping(java.util.function.Function<PutMappingRequest.Builder,ObjectBuilder<PutMappingRequest>> fn)Updates the index mappings.- Parameters:
fn
- a function that initializes a builder to create thePutMappingRequest
- See Also:
- Documentation on elastic.co
-
putSettings
public java.util.concurrent.CompletableFuture<PutIndicesSettingsResponse> putSettings(PutIndicesSettingsRequest request)Updates the index settings.- See Also:
- Documentation on elastic.co
-
putSettings
public final java.util.concurrent.CompletableFuture<PutIndicesSettingsResponse> putSettings(java.util.function.Function<PutIndicesSettingsRequest.Builder,ObjectBuilder<PutIndicesSettingsRequest>> fn)Updates the index settings.- Parameters:
fn
- a function that initializes a builder to create thePutIndicesSettingsRequest
- See Also:
- Documentation on elastic.co
-
putSettings
Updates the index settings.- See Also:
- Documentation on elastic.co
-
putTemplate
public java.util.concurrent.CompletableFuture<PutTemplateResponse> putTemplate(PutTemplateRequest request)Creates or updates an index template.- See Also:
- Documentation on elastic.co
-
putTemplate
public final java.util.concurrent.CompletableFuture<PutTemplateResponse> putTemplate(java.util.function.Function<PutTemplateRequest.Builder,ObjectBuilder<PutTemplateRequest>> fn)Creates or updates an index template.- Parameters:
fn
- a function that initializes a builder to create thePutTemplateRequest
- See Also:
- Documentation on elastic.co
-
recovery
Returns information about ongoing index shard recoveries.- See Also:
- Documentation on elastic.co
-
recovery
public final java.util.concurrent.CompletableFuture<RecoveryResponse> recovery(java.util.function.Function<RecoveryRequest.Builder,ObjectBuilder<RecoveryRequest>> fn)Returns information about ongoing index shard recoveries.- Parameters:
fn
- a function that initializes a builder to create theRecoveryRequest
- See Also:
- Documentation on elastic.co
-
recovery
Returns information about ongoing index shard recoveries.- See Also:
- Documentation on elastic.co
-
refresh
Performs the refresh operation in one or more indices.- See Also:
- Documentation on elastic.co
-
refresh
public final java.util.concurrent.CompletableFuture<RefreshResponse> refresh(java.util.function.Function<RefreshRequest.Builder,ObjectBuilder<RefreshRequest>> fn)Performs the refresh operation in one or more indices.- Parameters:
fn
- a function that initializes a builder to create theRefreshRequest
- See Also:
- Documentation on elastic.co
-
refresh
Performs the refresh operation in one or more indices.- See Also:
- Documentation on elastic.co
-
reloadSearchAnalyzers
public java.util.concurrent.CompletableFuture<ReloadSearchAnalyzersResponse> reloadSearchAnalyzers(ReloadSearchAnalyzersRequest request)Reloads an index's search analyzers and their resources.- See Also:
- Documentation on elastic.co
-
reloadSearchAnalyzers
public final java.util.concurrent.CompletableFuture<ReloadSearchAnalyzersResponse> reloadSearchAnalyzers(java.util.function.Function<ReloadSearchAnalyzersRequest.Builder,ObjectBuilder<ReloadSearchAnalyzersRequest>> fn)Reloads an index's search analyzers and their resources.- Parameters:
fn
- a function that initializes a builder to create theReloadSearchAnalyzersRequest
- See Also:
- Documentation on elastic.co
-
resolveIndex
public java.util.concurrent.CompletableFuture<ResolveIndexResponse> resolveIndex(ResolveIndexRequest request)Returns information about any matching indices, aliases, and data streams- See Also:
- Documentation on elastic.co
-
resolveIndex
public final java.util.concurrent.CompletableFuture<ResolveIndexResponse> resolveIndex(java.util.function.Function<ResolveIndexRequest.Builder,ObjectBuilder<ResolveIndexRequest>> fn)Returns information about any matching indices, aliases, and data streams- Parameters:
fn
- a function that initializes a builder to create theResolveIndexRequest
- See Also:
- Documentation on elastic.co
-
rollover
Updates an alias to point to a new index when the existing index is considered to be too large or too old.- See Also:
- Documentation on elastic.co
-
rollover
public final java.util.concurrent.CompletableFuture<RolloverResponse> rollover(java.util.function.Function<RolloverRequest.Builder,ObjectBuilder<RolloverRequest>> fn)Updates an alias to point to a new index when the existing index is considered to be too large or too old.- Parameters:
fn
- a function that initializes a builder to create theRolloverRequest
- See Also:
- Documentation on elastic.co
-
segments
Provides low-level information about segments in a Lucene index.- See Also:
- Documentation on elastic.co
-
segments
public final java.util.concurrent.CompletableFuture<SegmentsResponse> segments(java.util.function.Function<SegmentsRequest.Builder,ObjectBuilder<SegmentsRequest>> fn)Provides low-level information about segments in a Lucene index.- Parameters:
fn
- a function that initializes a builder to create theSegmentsRequest
- See Also:
- Documentation on elastic.co
-
segments
Provides low-level information about segments in a Lucene index.- See Also:
- Documentation on elastic.co
-
shardStores
public java.util.concurrent.CompletableFuture<ShardStoresResponse> shardStores(ShardStoresRequest request)Provides store information for shard copies of indices.- See Also:
- Documentation on elastic.co
-
shardStores
public final java.util.concurrent.CompletableFuture<ShardStoresResponse> shardStores(java.util.function.Function<ShardStoresRequest.Builder,ObjectBuilder<ShardStoresRequest>> fn)Provides store information for shard copies of indices.- Parameters:
fn
- a function that initializes a builder to create theShardStoresRequest
- See Also:
- Documentation on elastic.co
-
shardStores
Provides store information for shard copies of indices.- See Also:
- Documentation on elastic.co
-
shrink
Allow to shrink an existing index into a new index with fewer primary shards.- See Also:
- Documentation on elastic.co
-
shrink
public final java.util.concurrent.CompletableFuture<ShrinkResponse> shrink(java.util.function.Function<ShrinkRequest.Builder,ObjectBuilder<ShrinkRequest>> fn)Allow to shrink an existing index into a new index with fewer primary shards.- Parameters:
fn
- a function that initializes a builder to create theShrinkRequest
- See Also:
- Documentation on elastic.co
-
simulateIndexTemplate
public java.util.concurrent.CompletableFuture<SimulateIndexTemplateResponse> simulateIndexTemplate(SimulateIndexTemplateRequest request)Simulate matching the given index name against the index templates in the system- See Also:
- Documentation on elastic.co
-
simulateIndexTemplate
public final java.util.concurrent.CompletableFuture<SimulateIndexTemplateResponse> simulateIndexTemplate(java.util.function.Function<SimulateIndexTemplateRequest.Builder,ObjectBuilder<SimulateIndexTemplateRequest>> fn)Simulate matching the given index name against the index templates in the system- Parameters:
fn
- a function that initializes a builder to create theSimulateIndexTemplateRequest
- See Also:
- Documentation on elastic.co
-
simulateTemplate
public java.util.concurrent.CompletableFuture<SimulateTemplateResponse> simulateTemplate(SimulateTemplateRequest request)Simulate resolving the given template name or body- See Also:
- Documentation on elastic.co
-
simulateTemplate
public final java.util.concurrent.CompletableFuture<SimulateTemplateResponse> simulateTemplate(java.util.function.Function<SimulateTemplateRequest.Builder,ObjectBuilder<SimulateTemplateRequest>> fn)Simulate resolving the given template name or body- Parameters:
fn
- a function that initializes a builder to create theSimulateTemplateRequest
- See Also:
- Documentation on elastic.co
-
simulateTemplate
Simulate resolving the given template name or body- See Also:
- Documentation on elastic.co
-
split
Allows you to split an existing index into a new index with more primary shards.- See Also:
- Documentation on elastic.co
-
split
public final java.util.concurrent.CompletableFuture<SplitResponse> split(java.util.function.Function<SplitRequest.Builder,ObjectBuilder<SplitRequest>> fn)Allows you to split an existing index into a new index with more primary shards.- Parameters:
fn
- a function that initializes a builder to create theSplitRequest
- See Also:
- Documentation on elastic.co
-
stats
public java.util.concurrent.CompletableFuture<IndicesStatsResponse> stats(IndicesStatsRequest request)Provides statistics on operations happening in an index.- See Also:
- Documentation on elastic.co
-
stats
public final java.util.concurrent.CompletableFuture<IndicesStatsResponse> stats(java.util.function.Function<IndicesStatsRequest.Builder,ObjectBuilder<IndicesStatsRequest>> fn)Provides statistics on operations happening in an index.- Parameters:
fn
- a function that initializes a builder to create theIndicesStatsRequest
- See Also:
- Documentation on elastic.co
-
stats
Provides statistics on operations happening in an index.- See Also:
- Documentation on elastic.co
-
unfreeze
Unfreezes an index. When a frozen index is unfrozen, the index goes through the normal recovery process and becomes writeable again.- See Also:
- Documentation on elastic.co
-
unfreeze
public final java.util.concurrent.CompletableFuture<UnfreezeResponse> unfreeze(java.util.function.Function<UnfreezeRequest.Builder,ObjectBuilder<UnfreezeRequest>> fn)Unfreezes an index. When a frozen index is unfrozen, the index goes through the normal recovery process and becomes writeable again.- Parameters:
fn
- a function that initializes a builder to create theUnfreezeRequest
- See Also:
- Documentation on elastic.co
-
updateAliases
public java.util.concurrent.CompletableFuture<UpdateAliasesResponse> updateAliases(UpdateAliasesRequest request)Updates index aliases.- See Also:
- Documentation on elastic.co
-
updateAliases
public final java.util.concurrent.CompletableFuture<UpdateAliasesResponse> updateAliases(java.util.function.Function<UpdateAliasesRequest.Builder,ObjectBuilder<UpdateAliasesRequest>> fn)Updates index aliases.- Parameters:
fn
- a function that initializes a builder to create theUpdateAliasesRequest
- See Also:
- Documentation on elastic.co
-
updateAliases
Updates index aliases.- See Also:
- Documentation on elastic.co
-
validateQuery
public java.util.concurrent.CompletableFuture<ValidateQueryResponse> validateQuery(ValidateQueryRequest request)Allows a user to validate a potentially expensive query without executing it.- See Also:
- Documentation on elastic.co
-
validateQuery
public final java.util.concurrent.CompletableFuture<ValidateQueryResponse> validateQuery(java.util.function.Function<ValidateQueryRequest.Builder,ObjectBuilder<ValidateQueryRequest>> fn)Allows a user to validate a potentially expensive query without executing it.- Parameters:
fn
- a function that initializes a builder to create theValidateQueryRequest
- See Also:
- Documentation on elastic.co
-
validateQuery
Allows a user to validate a potentially expensive query without executing it.- See Also:
- Documentation on elastic.co
-