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
ConstructorDescriptionElasticsearchIndicesAsyncClient
(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionaddBlock
(AddBlockRequest request) Adds a block to an index.Adds a block to an index.analyze()
Performs the analysis process on a text and return the tokens breakdown of the text.analyze
(AnalyzeRequest request) Performs the analysis process on a text and return the tokens breakdown of the text.final CompletableFuture<AnalyzeResponse>
Performs the analysis process on a text and return the tokens breakdown of the text.Clears all or specific caches for one or more indices.clearCache
(ClearCacheRequest request) Clears all or specific caches for one or more indices.Clears all or specific caches for one or more indices.clone
(CloneIndexRequest request) Clones an indexClones an indexclose
(CloseIndexRequest request) Closes an index.Closes an index.create
(CreateIndexRequest request) Creates an index with optional settings and mappings.Creates an index with optional settings and mappings.createDataStream
(CreateDataStreamRequest request) Creates a data streamcreateDataStream
(Function<CreateDataStreamRequest.Builder, ObjectBuilder<CreateDataStreamRequest>> fn) Creates a data streamProvides statistics on operations happening in a data stream.dataStreamsStats
(DataStreamsStatsRequest request) Provides statistics on operations happening in a data stream.dataStreamsStats
(Function<DataStreamsStatsRequest.Builder, ObjectBuilder<DataStreamsStatsRequest>> fn) Provides statistics on operations happening in a data stream.delete
(DeleteIndexRequest request) Deletes an index.Deletes an index.deleteAlias
(DeleteAliasRequest request) Deletes an alias.Deletes an alias.Deletes the data stream lifecycle of the selected data streams.deleteDataLifecycle
(Function<DeleteDataLifecycleRequest.Builder, ObjectBuilder<DeleteDataLifecycleRequest>> fn) Deletes the data stream lifecycle of the selected data streams.deleteDataStream
(DeleteDataStreamRequest request) Deletes a data stream.deleteDataStream
(Function<DeleteDataStreamRequest.Builder, ObjectBuilder<DeleteDataStreamRequest>> fn) Deletes a data stream.Deletes an index template.deleteIndexTemplate
(Function<DeleteIndexTemplateRequest.Builder, ObjectBuilder<DeleteIndexTemplateRequest>> fn) Deletes an index template.deleteTemplate
(DeleteTemplateRequest request) Deletes an index template.Deletes an index template.diskUsage
(DiskUsageRequest request) Analyzes the disk usage of each field of an index or data streamAnalyzes the disk usage of each field of an index or data streamdownsample
(DownsampleRequest request) Downsample an indexDownsample an indexexists
(ExistsRequest request) Returns information about whether a particular index exists.final CompletableFuture<BooleanResponse>
Returns information about whether a particular index exists.existsAlias
(ExistsAliasRequest request) Returns information about whether a particular alias exists.final CompletableFuture<BooleanResponse>
Returns information about whether a particular alias exists.Returns information about whether a particular index template exists.final CompletableFuture<BooleanResponse>
existsIndexTemplate
(Function<ExistsIndexTemplateRequest.Builder, ObjectBuilder<ExistsIndexTemplateRequest>> fn) Returns information about whether a particular index template exists.existsTemplate
(ExistsTemplateRequest request) Returns information about whether a particular index template exists.final CompletableFuture<BooleanResponse>
Returns information about whether a particular index template exists.Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc.explainDataLifecycle
(Function<ExplainDataLifecycleRequest.Builder, ObjectBuilder<ExplainDataLifecycleRequest>> fn) Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc.fieldUsageStats
(FieldUsageStatsRequest request) Returns the field usage stats for each field of an indexReturns the field usage stats for each field of an indexflush()
Performs the flush operation on one or more indices.flush
(FlushRequest request) Performs the flush operation on one or more indices.final CompletableFuture<FlushResponse>
Performs the flush operation on one or more indices.Performs the force merge operation on one or more indices.forcemerge
(ForcemergeRequest request) Performs the force merge operation on one or more indices.Performs the force merge operation on one or more indices.get
(GetIndexRequest request) Returns information about one or more indices.Returns information about one or more indices.getAlias()
Returns an alias.getAlias
(GetAliasRequest request) Returns an alias.Returns an alias.getDataLifecycle
(GetDataLifecycleRequest request) Returns the data stream lifecycle of the selected data streams.getDataLifecycle
(Function<GetDataLifecycleRequest.Builder, ObjectBuilder<GetDataLifecycleRequest>> fn) Returns the data stream lifecycle of the selected data streams.Returns data streams.getDataStream
(GetDataStreamRequest request) Returns data streams.Returns data streams.getFieldMapping
(GetFieldMappingRequest request) Returns mapping for one or more fields.Returns mapping for one or more fields.Returns an index template.getIndexTemplate
(GetIndexTemplateRequest request) Returns an index template.getIndexTemplate
(Function<GetIndexTemplateRequest.Builder, ObjectBuilder<GetIndexTemplateRequest>> fn) Returns an index template.Returns mappings for one or more indices.getMapping
(GetMappingRequest request) Returns mappings for one or more indices.Returns mappings for one or more indices.Returns settings for one or more indices.getSettings
(GetIndicesSettingsRequest request) Returns settings for one or more indices.getSettings
(Function<GetIndicesSettingsRequest.Builder, ObjectBuilder<GetIndicesSettingsRequest>> fn) Returns settings for one or more indices.Returns an index template.getTemplate
(GetTemplateRequest request) Returns an index template.Returns an index template.Migrates an alias to a data streammigrateToDataStream
(Function<MigrateToDataStreamRequest.Builder, ObjectBuilder<MigrateToDataStreamRequest>> fn) Migrates an alias to a data streammodifyDataStream
(ModifyDataStreamRequest request) Modifies a data streammodifyDataStream
(Function<ModifyDataStreamRequest.Builder, ObjectBuilder<ModifyDataStreamRequest>> fn) Modifies a data streamopen
(OpenRequest request) Opens an index.final CompletableFuture<OpenResponse>
Opens an index.Promotes a data stream from a replicated data stream managed by CCR to a regular data streampromoteDataStream
(Function<PromoteDataStreamRequest.Builder, ObjectBuilder<PromoteDataStreamRequest>> fn) Promotes a data stream from a replicated data stream managed by CCR to a regular data streamputAlias
(PutAliasRequest request) Creates or updates an alias.Creates or updates an alias.putDataLifecycle
(PutDataLifecycleRequest request) Updates the data stream lifecycle of the selected data streams.putDataLifecycle
(Function<PutDataLifecycleRequest.Builder, ObjectBuilder<PutDataLifecycleRequest>> fn) Updates the data stream lifecycle of the selected data streams.putIndexTemplate
(PutIndexTemplateRequest request) Creates or updates an index template.putIndexTemplate
(Function<PutIndexTemplateRequest.Builder, ObjectBuilder<PutIndexTemplateRequest>> fn) Creates or updates an index template.putMapping
(PutMappingRequest request) Updates the index mappings.Updates the index mappings.Updates the index settings.putSettings
(PutIndicesSettingsRequest request) Updates the index settings.putSettings
(Function<PutIndicesSettingsRequest.Builder, ObjectBuilder<PutIndicesSettingsRequest>> fn) Updates the index settings.putTemplate
(PutTemplateRequest request) Creates or updates an index template.Creates or updates an index template.recovery()
Returns information about ongoing index shard recoveries.recovery
(RecoveryRequest request) Returns information about ongoing index shard recoveries.Returns information about ongoing index shard recoveries.refresh()
Performs the refresh operation in one or more indices.refresh
(RefreshRequest request) Performs the refresh operation in one or more indices.final CompletableFuture<RefreshResponse>
Performs the refresh operation in one or more indices.Reloads an index's search analyzers and their resources.reloadSearchAnalyzers
(Function<ReloadSearchAnalyzersRequest.Builder, ObjectBuilder<ReloadSearchAnalyzersRequest>> fn) Reloads an index's search analyzers and their resources.resolveCluster
(ResolveClusterRequest request) Resolves the specified index expressions to return information about each cluster, including the local cluster, if included.Resolves the specified index expressions to return information about each cluster, including the local cluster, if included.resolveIndex
(ResolveIndexRequest request) Returns information about any matching indices, aliases, and data streamsReturns information about any matching indices, aliases, and data streamsrollover
(RolloverRequest request) Updates an alias to point to a new index when the existing index is considered to be too large or too old.Updates an alias to point to a new index when the existing index is considered to be too large or too old.segments()
Provides low-level information about segments in a Lucene index.segments
(SegmentsRequest request) Provides low-level information about segments in a Lucene index.Provides low-level information about segments in a Lucene index.Provides store information for shard copies of indices.shardStores
(ShardStoresRequest request) Provides store information for shard copies of indices.Provides store information for shard copies of indices.shrink
(ShrinkRequest request) Allow to shrink an existing index into a new index with fewer primary shards.final CompletableFuture<ShrinkResponse>
Allow to shrink an existing index into a new index with fewer primary shards.Simulate matching the given index name against the index templates in the systemsimulateIndexTemplate
(Function<SimulateIndexTemplateRequest.Builder, ObjectBuilder<SimulateIndexTemplateRequest>> fn) Simulate matching the given index name against the index templates in the systemSimulate resolving the given template name or bodysimulateTemplate
(SimulateTemplateRequest request) Simulate resolving the given template name or bodysimulateTemplate
(Function<SimulateTemplateRequest.Builder, ObjectBuilder<SimulateTemplateRequest>> fn) Simulate resolving the given template name or bodysplit
(SplitRequest request) Allows you to split an existing index into a new index with more primary shards.final CompletableFuture<SplitResponse>
Allows you to split an existing index into a new index with more primary shards.stats()
Provides statistics on operations happening in an index.stats
(IndicesStatsRequest request) Provides statistics on operations happening in an index.Provides statistics on operations happening in an index.unfreeze
(UnfreezeRequest request) Unfreezes an index.Unfreezes an index.Updates index aliases.updateAliases
(UpdateAliasesRequest request) Updates index aliases.Updates index aliases.Allows a user to validate a potentially expensive query without executing it.validateQuery
(ValidateQueryRequest request) Allows a user to validate a potentially expensive query without executing it.Allows a user to validate a potentially expensive query without executing it.withTransportOptions
(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializer, withTransportOptions
-
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:
-
addBlock
public final CompletableFuture<AddBlockResponse> addBlock(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:
-
analyze
Performs the analysis process on a text and return the tokens breakdown of the text.- See Also:
-
analyze
public final CompletableFuture<AnalyzeResponse> analyze(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:
-
analyze
Performs the analysis process on a text and return the tokens breakdown of the text.- See Also:
-
clearCache
Clears all or specific caches for one or more indices.- See Also:
-
clearCache
public final CompletableFuture<ClearCacheResponse> clearCache(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:
-
clearCache
Clears all or specific caches for one or more indices.- See Also:
-
clone
Clones an index- See Also:
-
clone
public final CompletableFuture<CloneIndexResponse> clone(Function<CloneIndexRequest.Builder, ObjectBuilder<CloneIndexRequest>> fn) Clones an index- Parameters:
fn
- a function that initializes a builder to create theCloneIndexRequest
- See Also:
-
close
Closes an index.- See Also:
-
close
public final CompletableFuture<CloseIndexResponse> close(Function<CloseIndexRequest.Builder, ObjectBuilder<CloseIndexRequest>> fn) Closes an index.- Parameters:
fn
- a function that initializes a builder to create theCloseIndexRequest
- See Also:
-
create
Creates an index with optional settings and mappings.- See Also:
-
create
public final CompletableFuture<CreateIndexResponse> create(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:
-
createDataStream
public CompletableFuture<CreateDataStreamResponse> createDataStream(CreateDataStreamRequest request) Creates a data stream- See Also:
-
createDataStream
public final CompletableFuture<CreateDataStreamResponse> createDataStream(Function<CreateDataStreamRequest.Builder, ObjectBuilder<CreateDataStreamRequest>> fn) Creates a data stream- Parameters:
fn
- a function that initializes a builder to create theCreateDataStreamRequest
- See Also:
-
dataStreamsStats
public CompletableFuture<DataStreamsStatsResponse> dataStreamsStats(DataStreamsStatsRequest request) Provides statistics on operations happening in a data stream.- See Also:
-
dataStreamsStats
public final CompletableFuture<DataStreamsStatsResponse> dataStreamsStats(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:
-
dataStreamsStats
Provides statistics on operations happening in a data stream.- See Also:
-
delete
Deletes an index.- See Also:
-
delete
public final CompletableFuture<DeleteIndexResponse> delete(Function<DeleteIndexRequest.Builder, ObjectBuilder<DeleteIndexRequest>> fn) Deletes an index.- Parameters:
fn
- a function that initializes a builder to create theDeleteIndexRequest
- See Also:
-
deleteAlias
Deletes an alias.- See Also:
-
deleteAlias
public final CompletableFuture<DeleteAliasResponse> deleteAlias(Function<DeleteAliasRequest.Builder, ObjectBuilder<DeleteAliasRequest>> fn) Deletes an alias.- Parameters:
fn
- a function that initializes a builder to create theDeleteAliasRequest
- See Also:
-
deleteDataLifecycle
public CompletableFuture<DeleteDataLifecycleResponse> deleteDataLifecycle(DeleteDataLifecycleRequest request) Deletes the data stream lifecycle of the selected data streams.- See Also:
-
deleteDataLifecycle
public final CompletableFuture<DeleteDataLifecycleResponse> deleteDataLifecycle(Function<DeleteDataLifecycleRequest.Builder, ObjectBuilder<DeleteDataLifecycleRequest>> fn) Deletes the data stream lifecycle of the selected data streams.- Parameters:
fn
- a function that initializes a builder to create theDeleteDataLifecycleRequest
- See Also:
-
deleteDataStream
public CompletableFuture<DeleteDataStreamResponse> deleteDataStream(DeleteDataStreamRequest request) Deletes a data stream.- See Also:
-
deleteDataStream
public final CompletableFuture<DeleteDataStreamResponse> deleteDataStream(Function<DeleteDataStreamRequest.Builder, ObjectBuilder<DeleteDataStreamRequest>> fn) Deletes a data stream.- Parameters:
fn
- a function that initializes a builder to create theDeleteDataStreamRequest
- See Also:
-
deleteIndexTemplate
public CompletableFuture<DeleteIndexTemplateResponse> deleteIndexTemplate(DeleteIndexTemplateRequest request) Deletes an index template.- See Also:
-
deleteIndexTemplate
public final CompletableFuture<DeleteIndexTemplateResponse> deleteIndexTemplate(Function<DeleteIndexTemplateRequest.Builder, ObjectBuilder<DeleteIndexTemplateRequest>> fn) Deletes an index template.- Parameters:
fn
- a function that initializes a builder to create theDeleteIndexTemplateRequest
- See Also:
-
deleteTemplate
Deletes an index template.- See Also:
-
deleteTemplate
public final CompletableFuture<DeleteTemplateResponse> deleteTemplate(Function<DeleteTemplateRequest.Builder, ObjectBuilder<DeleteTemplateRequest>> fn) Deletes an index template.- Parameters:
fn
- a function that initializes a builder to create theDeleteTemplateRequest
- See Also:
-
diskUsage
Analyzes the disk usage of each field of an index or data stream- See Also:
-
diskUsage
public final CompletableFuture<DiskUsageResponse> diskUsage(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:
-
downsample
Downsample an index- See Also:
-
downsample
public final CompletableFuture<DownsampleResponse> downsample(Function<DownsampleRequest.Builder, ObjectBuilder<DownsampleRequest>> fn) Downsample an index- Parameters:
fn
- a function that initializes a builder to create theDownsampleRequest
- See Also:
-
exists
Returns information about whether a particular index exists.- See Also:
-
exists
public final CompletableFuture<BooleanResponse> exists(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:
-
existsAlias
Returns information about whether a particular alias exists.- See Also:
-
existsAlias
public final CompletableFuture<BooleanResponse> existsAlias(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:
-
existsIndexTemplate
Returns information about whether a particular index template exists.- See Also:
-
existsIndexTemplate
public final CompletableFuture<BooleanResponse> existsIndexTemplate(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:
-
existsTemplate
Returns information about whether a particular index template exists.- See Also:
-
existsTemplate
public final CompletableFuture<BooleanResponse> existsTemplate(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:
-
explainDataLifecycle
public CompletableFuture<ExplainDataLifecycleResponse> explainDataLifecycle(ExplainDataLifecycleRequest request) Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc.- See Also:
-
explainDataLifecycle
public final CompletableFuture<ExplainDataLifecycleResponse> explainDataLifecycle(Function<ExplainDataLifecycleRequest.Builder, ObjectBuilder<ExplainDataLifecycleRequest>> fn) Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc.- Parameters:
fn
- a function that initializes a builder to create theExplainDataLifecycleRequest
- See Also:
-
fieldUsageStats
Returns the field usage stats for each field of an index- See Also:
-
fieldUsageStats
public final CompletableFuture<FieldUsageStatsResponse> fieldUsageStats(Function<FieldUsageStatsRequest.Builder, ObjectBuilder<FieldUsageStatsRequest>> fn) Returns the field usage stats for each field of an index- Parameters:
fn
- a function that initializes a builder to create theFieldUsageStatsRequest
- See Also:
-
flush
Performs the flush operation on one or more indices.- See Also:
-
flush
public final CompletableFuture<FlushResponse> flush(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:
-
flush
Performs the flush operation on one or more indices.- See Also:
-
forcemerge
Performs the force merge operation on one or more indices.- See Also:
-
forcemerge
public final CompletableFuture<ForcemergeResponse> forcemerge(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:
-
forcemerge
Performs the force merge operation on one or more indices.- See Also:
-
get
Returns information about one or more indices.- See Also:
-
get
public final CompletableFuture<GetIndexResponse> get(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:
-
getAlias
Returns an alias.- See Also:
-
getAlias
public final CompletableFuture<GetAliasResponse> getAlias(Function<GetAliasRequest.Builder, ObjectBuilder<GetAliasRequest>> fn) Returns an alias.- Parameters:
fn
- a function that initializes a builder to create theGetAliasRequest
- See Also:
-
getAlias
Returns an alias.- See Also:
-
getDataLifecycle
public CompletableFuture<GetDataLifecycleResponse> getDataLifecycle(GetDataLifecycleRequest request) Returns the data stream lifecycle of the selected data streams.- See Also:
-
getDataLifecycle
public final CompletableFuture<GetDataLifecycleResponse> getDataLifecycle(Function<GetDataLifecycleRequest.Builder, ObjectBuilder<GetDataLifecycleRequest>> fn) Returns the data stream lifecycle of the selected data streams.- Parameters:
fn
- a function that initializes a builder to create theGetDataLifecycleRequest
- See Also:
-
getDataStream
Returns data streams.- See Also:
-
getDataStream
public final CompletableFuture<GetDataStreamResponse> getDataStream(Function<GetDataStreamRequest.Builder, ObjectBuilder<GetDataStreamRequest>> fn) Returns data streams.- Parameters:
fn
- a function that initializes a builder to create theGetDataStreamRequest
- See Also:
-
getDataStream
Returns data streams.- See Also:
-
getFieldMapping
Returns mapping for one or more fields.- See Also:
-
getFieldMapping
public final CompletableFuture<GetFieldMappingResponse> getFieldMapping(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:
-
getIndexTemplate
public CompletableFuture<GetIndexTemplateResponse> getIndexTemplate(GetIndexTemplateRequest request) Returns an index template.- See Also:
-
getIndexTemplate
public final CompletableFuture<GetIndexTemplateResponse> getIndexTemplate(Function<GetIndexTemplateRequest.Builder, ObjectBuilder<GetIndexTemplateRequest>> fn) Returns an index template.- Parameters:
fn
- a function that initializes a builder to create theGetIndexTemplateRequest
- See Also:
-
getIndexTemplate
Returns an index template.- See Also:
-
getMapping
Returns mappings for one or more indices.- See Also:
-
getMapping
public final CompletableFuture<GetMappingResponse> getMapping(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:
-
getMapping
Returns mappings for one or more indices.- See Also:
-
getSettings
Returns settings for one or more indices.- See Also:
-
getSettings
public final CompletableFuture<GetIndicesSettingsResponse> getSettings(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:
-
getSettings
Returns settings for one or more indices.- See Also:
-
getTemplate
Returns an index template.- See Also:
-
getTemplate
public final CompletableFuture<GetTemplateResponse> getTemplate(Function<GetTemplateRequest.Builder, ObjectBuilder<GetTemplateRequest>> fn) Returns an index template.- Parameters:
fn
- a function that initializes a builder to create theGetTemplateRequest
- See Also:
-
getTemplate
Returns an index template.- See Also:
-
migrateToDataStream
public CompletableFuture<MigrateToDataStreamResponse> migrateToDataStream(MigrateToDataStreamRequest request) Migrates an alias to a data stream- See Also:
-
migrateToDataStream
public final CompletableFuture<MigrateToDataStreamResponse> migrateToDataStream(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:
-
modifyDataStream
public CompletableFuture<ModifyDataStreamResponse> modifyDataStream(ModifyDataStreamRequest request) Modifies a data stream- See Also:
-
modifyDataStream
public final CompletableFuture<ModifyDataStreamResponse> modifyDataStream(Function<ModifyDataStreamRequest.Builder, ObjectBuilder<ModifyDataStreamRequest>> fn) Modifies a data stream- Parameters:
fn
- a function that initializes a builder to create theModifyDataStreamRequest
- See Also:
-
open
Opens an index.- See Also:
-
open
public final CompletableFuture<OpenResponse> open(Function<OpenRequest.Builder, ObjectBuilder<OpenRequest>> fn) Opens an index.- Parameters:
fn
- a function that initializes a builder to create theOpenRequest
- See Also:
-
promoteDataStream
public CompletableFuture<PromoteDataStreamResponse> promoteDataStream(PromoteDataStreamRequest request) Promotes a data stream from a replicated data stream managed by CCR to a regular data stream- See Also:
-
promoteDataStream
public final CompletableFuture<PromoteDataStreamResponse> promoteDataStream(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:
-
putAlias
Creates or updates an alias.- See Also:
-
putAlias
public final CompletableFuture<PutAliasResponse> putAlias(Function<PutAliasRequest.Builder, ObjectBuilder<PutAliasRequest>> fn) Creates or updates an alias.- Parameters:
fn
- a function that initializes a builder to create thePutAliasRequest
- See Also:
-
putDataLifecycle
public CompletableFuture<PutDataLifecycleResponse> putDataLifecycle(PutDataLifecycleRequest request) Updates the data stream lifecycle of the selected data streams.- See Also:
-
putDataLifecycle
public final CompletableFuture<PutDataLifecycleResponse> putDataLifecycle(Function<PutDataLifecycleRequest.Builder, ObjectBuilder<PutDataLifecycleRequest>> fn) Updates the data stream lifecycle of the selected data streams.- Parameters:
fn
- a function that initializes a builder to create thePutDataLifecycleRequest
- See Also:
-
putIndexTemplate
public CompletableFuture<PutIndexTemplateResponse> putIndexTemplate(PutIndexTemplateRequest request) Creates or updates an index template.- See Also:
-
putIndexTemplate
public final CompletableFuture<PutIndexTemplateResponse> putIndexTemplate(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:
-
putMapping
Updates the index mappings.- See Also:
-
putMapping
public final CompletableFuture<PutMappingResponse> putMapping(Function<PutMappingRequest.Builder, ObjectBuilder<PutMappingRequest>> fn) Updates the index mappings.- Parameters:
fn
- a function that initializes a builder to create thePutMappingRequest
- See Also:
-
putSettings
Updates the index settings.- See Also:
-
putSettings
public final CompletableFuture<PutIndicesSettingsResponse> putSettings(Function<PutIndicesSettingsRequest.Builder, ObjectBuilder<PutIndicesSettingsRequest>> fn) Updates the index settings.- Parameters:
fn
- a function that initializes a builder to create thePutIndicesSettingsRequest
- See Also:
-
putSettings
Updates the index settings.- See Also:
-
putTemplate
Creates or updates an index template.- See Also:
-
putTemplate
public final CompletableFuture<PutTemplateResponse> putTemplate(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:
-
recovery
Returns information about ongoing index shard recoveries.- See Also:
-
recovery
public final CompletableFuture<RecoveryResponse> recovery(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:
-
recovery
Returns information about ongoing index shard recoveries.- See Also:
-
refresh
Performs the refresh operation in one or more indices.- See Also:
-
refresh
public final CompletableFuture<RefreshResponse> refresh(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:
-
refresh
Performs the refresh operation in one or more indices.- See Also:
-
reloadSearchAnalyzers
public CompletableFuture<ReloadSearchAnalyzersResponse> reloadSearchAnalyzers(ReloadSearchAnalyzersRequest request) Reloads an index's search analyzers and their resources.- See Also:
-
reloadSearchAnalyzers
public final CompletableFuture<ReloadSearchAnalyzersResponse> reloadSearchAnalyzers(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:
-
resolveCluster
Resolves the specified index expressions to return information about each cluster, including the local cluster, if included.- See Also:
-
resolveCluster
public final CompletableFuture<ResolveClusterResponse> resolveCluster(Function<ResolveClusterRequest.Builder, ObjectBuilder<ResolveClusterRequest>> fn) Resolves the specified index expressions to return information about each cluster, including the local cluster, if included.- Parameters:
fn
- a function that initializes a builder to create theResolveClusterRequest
- See Also:
-
resolveIndex
Returns information about any matching indices, aliases, and data streams- See Also:
-
resolveIndex
public final CompletableFuture<ResolveIndexResponse> resolveIndex(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:
-
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:
-
rollover
public final CompletableFuture<RolloverResponse> rollover(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:
-
segments
Provides low-level information about segments in a Lucene index.- See Also:
-
segments
public final CompletableFuture<SegmentsResponse> segments(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:
-
segments
Provides low-level information about segments in a Lucene index.- See Also:
-
shardStores
Provides store information for shard copies of indices.- See Also:
-
shardStores
public final CompletableFuture<ShardStoresResponse> shardStores(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:
-
shardStores
Provides store information for shard copies of indices.- See Also:
-
shrink
Allow to shrink an existing index into a new index with fewer primary shards.- See Also:
-
shrink
public final CompletableFuture<ShrinkResponse> shrink(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:
-
simulateIndexTemplate
public CompletableFuture<SimulateIndexTemplateResponse> simulateIndexTemplate(SimulateIndexTemplateRequest request) Simulate matching the given index name against the index templates in the system- See Also:
-
simulateIndexTemplate
public final CompletableFuture<SimulateIndexTemplateResponse> simulateIndexTemplate(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:
-
simulateTemplate
public CompletableFuture<SimulateTemplateResponse> simulateTemplate(SimulateTemplateRequest request) Simulate resolving the given template name or body- See Also:
-
simulateTemplate
public final CompletableFuture<SimulateTemplateResponse> simulateTemplate(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:
-
simulateTemplate
Simulate resolving the given template name or body- See Also:
-
split
Allows you to split an existing index into a new index with more primary shards.- See Also:
-
split
public final CompletableFuture<SplitResponse> split(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:
-
stats
Provides statistics on operations happening in an index.- See Also:
-
stats
public final CompletableFuture<IndicesStatsResponse> stats(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:
-
stats
Provides statistics on operations happening in an index.- See Also:
-
unfreeze
Unfreezes an index. When a frozen index is unfrozen, the index goes through the normal recovery process and becomes writeable again.- See Also:
-
unfreeze
public final CompletableFuture<UnfreezeResponse> unfreeze(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:
-
updateAliases
Updates index aliases.- See Also:
-
updateAliases
public final CompletableFuture<UpdateAliasesResponse> updateAliases(Function<UpdateAliasesRequest.Builder, ObjectBuilder<UpdateAliasesRequest>> fn) Updates index aliases.- Parameters:
fn
- a function that initializes a builder to create theUpdateAliasesRequest
- See Also:
-
updateAliases
Updates index aliases.- See Also:
-
validateQuery
Allows a user to validate a potentially expensive query without executing it.- See Also:
-
validateQuery
public final CompletableFuture<ValidateQueryResponse> validateQuery(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:
-
validateQuery
Allows a user to validate a potentially expensive query without executing it.- See Also:
-