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
ConstructorsConstructorDescriptionElasticsearchIndicesAsyncClient
(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 analysis on a text string and returns the resulting tokens.analyze
(AnalyzeRequest request) Performs analysis on a text string and returns the resulting tokens.final CompletableFuture<AnalyzeResponse>
Performs analysis on a text string and returns the resulting tokens.Clears the caches of one or more indices.clearCache
(ClearCacheRequest request) Clears the caches of one or more indices.Clears the caches of one or more indices.clone
(CloneIndexRequest request) Clones an existing index.Clones an existing index.close
(CloseIndexRequest request) Closes an index.Closes an index.create
(CreateIndexRequest request) Creates a new index.Creates a new index.createDataStream
(CreateDataStreamRequest request) Creates a data stream.createDataStream
(Function<CreateDataStreamRequest.Builder, ObjectBuilder<CreateDataStreamRequest>> fn) Creates a data stream.Retrieves statistics for one or more data streams.dataStreamsStats
(DataStreamsStatsRequest request) Retrieves statistics for one or more data streams.dataStreamsStats
(Function<DataStreamsStatsRequest.Builder, ObjectBuilder<DataStreamsStatsRequest>> fn) Retrieves statistics for one or more data streams.delete
(DeleteIndexRequest request) Deletes one or more indices.Deletes one or more indices.deleteAlias
(DeleteAliasRequest request) Removes a data stream or index from an alias.Removes a data stream or index from an alias.Removes the data lifecycle from a data stream rendering it not managed by the data stream lifecycledeleteDataLifecycle
(Function<DeleteDataLifecycleRequest.Builder, ObjectBuilder<DeleteDataLifecycleRequest>> fn) Removes the data lifecycle from a data stream rendering it not managed by the data stream lifecycledeleteDataStream
(DeleteDataStreamRequest request) Deletes one or more data streams and their backing indices.deleteDataStream
(Function<DeleteDataStreamRequest.Builder, ObjectBuilder<DeleteDataStreamRequest>> fn) Deletes one or more data streams and their backing indices.Delete an index template.deleteIndexTemplate
(Function<DeleteIndexTemplateRequest.Builder, ObjectBuilder<DeleteIndexTemplateRequest>> fn) Delete an index template.deleteTemplate
(DeleteTemplateRequest request) Deletes a legacy index template.Deletes a legacy index template.diskUsage
(DiskUsageRequest request) Analyzes the disk usage of each field of an index or data stream.Analyzes the disk usage of each field of an index or data stream.downsample
(DownsampleRequest request) Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min
,max
,sum
,value_count
andavg
) for each metric field grouped by a configured time interval.Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min
,max
,sum
,value_count
andavg
) for each metric field grouped by a configured time interval.exists
(ExistsRequest request) Checks if a data stream, index, or alias exists.final CompletableFuture<BooleanResponse>
Checks if a data stream, index, or alias exists.existsAlias
(ExistsAliasRequest request) Checks if an alias exists.final CompletableFuture<BooleanResponse>
Checks if an 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) Check existence of index templates.final CompletableFuture<BooleanResponse>
Check existence of index templates.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 field usage information for each shard and field of an index.Returns field usage information for each shard and field of an index.flush()
Flushes one or more data streams or indices.flush
(FlushRequest request) Flushes one or more data streams or indices.final CompletableFuture<FlushResponse>
Flushes one or more data streams or 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()
Retrieves information for one or more aliases.getAlias
(GetAliasRequest request) Retrieves information for one or more aliases.Retrieves information for one or more aliases.getDataLifecycle
(GetDataLifecycleRequest request) Retrieves the data stream lifecycle configuration of one or more data streams.getDataLifecycle
(Function<GetDataLifecycleRequest.Builder, ObjectBuilder<GetDataLifecycleRequest>> fn) Retrieves the data stream lifecycle configuration of one or more data streams.Retrieves information about one or more data streams.getDataStream
(GetDataStreamRequest request) Retrieves information about one or more data streams.Retrieves information about one or more data streams.getFieldMapping
(GetFieldMappingRequest request) Retrieves mapping definitions for one or more fields.Retrieves mapping definitions for one or more fields.Get index templates.getIndexTemplate
(GetIndexTemplateRequest request) Get index templates.getIndexTemplate
(Function<GetIndexTemplateRequest.Builder, ObjectBuilder<GetIndexTemplateRequest>> fn) Get index templates.Retrieves mapping definitions for one or more indices.getMapping
(GetMappingRequest request) Retrieves mapping definitions for one or more indices.Retrieves mapping definitions for one or more indices.Returns setting information for one or more indices.getSettings
(GetIndicesSettingsRequest request) Returns setting information for one or more indices.getSettings
(Function<GetIndicesSettingsRequest.Builder, ObjectBuilder<GetIndicesSettingsRequest>> fn) Returns setting information for one or more indices.Get index templates.getTemplate
(GetTemplateRequest request) Get index templates.Get index templates.Converts an index alias to a data stream.migrateToDataStream
(Function<MigrateToDataStreamRequest.Builder, ObjectBuilder<MigrateToDataStreamRequest>> fn) Converts an index alias to a data stream.modifyDataStream
(ModifyDataStreamRequest request) Performs one or more data stream modification actions in a single atomic operation.modifyDataStream
(Function<ModifyDataStreamRequest.Builder, ObjectBuilder<ModifyDataStreamRequest>> fn) Performs one or more data stream modification actions in a single atomic operation.open
(OpenRequest request) Opens a closed index.final CompletableFuture<OpenResponse>
Opens a closed 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) Adds a data stream or index to an alias.Adds a data stream or index to an alias.putDataLifecycle
(PutDataLifecycleRequest request) Update the data lifecycle of the specified data streams.putDataLifecycle
(Function<PutDataLifecycleRequest.Builder, ObjectBuilder<PutDataLifecycleRequest>> fn) Update the data lifecycle of the specified data streams.putIndexTemplate
(PutIndexTemplateRequest request) Create or update an index template.putIndexTemplate
(Function<PutIndexTemplateRequest.Builder, ObjectBuilder<PutIndexTemplateRequest>> fn) Create or update an index template.putMapping
(PutMappingRequest request) Adds new fields to an existing data stream or index.Adds new fields to an existing data stream or index.Changes a dynamic index setting in real time.putSettings
(PutIndicesSettingsRequest request) Changes a dynamic index setting in real time.putSettings
(Function<PutIndicesSettingsRequest.Builder, ObjectBuilder<PutIndicesSettingsRequest>> fn) Changes a dynamic index setting in real time.putTemplate
(PutTemplateRequest request) Create or update an index template.Create or update an index template.recovery()
Returns information about ongoing and completed shard recoveries for one or more indices.recovery
(RecoveryRequest request) Returns information about ongoing and completed shard recoveries for one or more indices.Returns information about ongoing and completed shard recoveries for one or more indices.refresh()
A refresh makes recent operations performed on one or more indices available for search.refresh
(RefreshRequest request) A refresh makes recent operations performed on one or more indices available for search.final CompletableFuture<RefreshResponse>
A refresh makes recent operations performed on one or more indices available for search.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) Resolves the specified name(s) and/or index patterns for indices, aliases, and data streams.Resolves the specified name(s) and/or index patterns for indices, aliases, and data streams.rollover
(RolloverRequest request) Creates a new index for a data stream or index alias.Creates a new index for a data stream or index alias.segments()
Returns low-level information about the Lucene segments in index shards.segments
(SegmentsRequest request) Returns low-level information about the Lucene segments in index shards.Returns low-level information about the Lucene segments in index shards.Retrieves store information about replica shards in one or more indices.shardStores
(ShardStoresRequest request) Retrieves store information about replica shards in one or more indices.Retrieves store information about replica shards in one or more indices.shrink
(ShrinkRequest request) Shrinks an existing index into a new index with fewer primary shards.final CompletableFuture<ShrinkResponse>
Shrinks an existing index into a new index with fewer primary shards.Simulate an index.simulateIndexTemplate
(Function<SimulateIndexTemplateRequest.Builder, ObjectBuilder<SimulateIndexTemplateRequest>> fn) Simulate an index.Simulate an index template.simulateTemplate
(SimulateTemplateRequest request) Simulate an index template.simulateTemplate
(Function<SimulateTemplateRequest.Builder, ObjectBuilder<SimulateTemplateRequest>> fn) Simulate an index template.split
(SplitRequest request) Splits an existing index into a new index with more primary shards.final CompletableFuture<SplitResponse>
Splits an existing index into a new index with more primary shards.stats()
Returns statistics for one or more indices.stats
(IndicesStatsRequest request) Returns statistics for one or more indices.Returns statistics for one or more indices.unfreeze
(UnfreezeRequest request) Unfreezes an index.Unfreezes an index.Adds a data stream or index to an alias.updateAliases
(UpdateAliasesRequest request) Adds a data stream or index to an alias.Adds a data stream or index to an alias.Validates a potentially expensive query without executing it.validateQuery
(ValidateQueryRequest request) Validates a potentially expensive query without executing it.Validates 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 analysis on a text string and returns the resulting tokens.- See Also:
-
analyze
public final CompletableFuture<AnalyzeResponse> analyze(Function<AnalyzeRequest.Builder, ObjectBuilder<AnalyzeRequest>> fn) Performs analysis on a text string and returns the resulting tokens.- Parameters:
fn
- a function that initializes a builder to create theAnalyzeRequest
- See Also:
-
analyze
Performs analysis on a text string and returns the resulting tokens.- See Also:
-
clearCache
Clears the caches of one or more indices. For data streams, the API clears the caches of the stream’s backing indices.- See Also:
-
clearCache
public final CompletableFuture<ClearCacheResponse> clearCache(Function<ClearCacheRequest.Builder, ObjectBuilder<ClearCacheRequest>> fn) Clears the caches of one or more indices. For data streams, the API clears the caches of the stream’s backing indices.- Parameters:
fn
- a function that initializes a builder to create theClearCacheRequest
- See Also:
-
clearCache
Clears the caches of one or more indices. For data streams, the API clears the caches of the stream’s backing indices.- See Also:
-
clone
Clones an existing index.- See Also:
-
clone
public final CompletableFuture<CloneIndexResponse> clone(Function<CloneIndexRequest.Builder, ObjectBuilder<CloneIndexRequest>> fn) Clones an existing 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 a new index.- See Also:
-
create
public final CompletableFuture<CreateIndexResponse> create(Function<CreateIndexRequest.Builder, ObjectBuilder<CreateIndexRequest>> fn) Creates a new index.- Parameters:
fn
- a function that initializes a builder to create theCreateIndexRequest
- See Also:
-
createDataStream
public CompletableFuture<CreateDataStreamResponse> createDataStream(CreateDataStreamRequest request) Creates a data stream. You must have a matching index template with data stream enabled.- See Also:
-
createDataStream
public final CompletableFuture<CreateDataStreamResponse> createDataStream(Function<CreateDataStreamRequest.Builder, ObjectBuilder<CreateDataStreamRequest>> fn) Creates a data stream. You must have a matching index template with data stream enabled.- Parameters:
fn
- a function that initializes a builder to create theCreateDataStreamRequest
- See Also:
-
dataStreamsStats
public CompletableFuture<DataStreamsStatsResponse> dataStreamsStats(DataStreamsStatsRequest request) Retrieves statistics for one or more data streams.- See Also:
-
dataStreamsStats
public final CompletableFuture<DataStreamsStatsResponse> dataStreamsStats(Function<DataStreamsStatsRequest.Builder, ObjectBuilder<DataStreamsStatsRequest>> fn) Retrieves statistics for one or more data streams.- Parameters:
fn
- a function that initializes a builder to create theDataStreamsStatsRequest
- See Also:
-
dataStreamsStats
Retrieves statistics for one or more data streams.- See Also:
-
delete
Deletes one or more indices.- See Also:
-
delete
public final CompletableFuture<DeleteIndexResponse> delete(Function<DeleteIndexRequest.Builder, ObjectBuilder<DeleteIndexRequest>> fn) Deletes one or more indices.- Parameters:
fn
- a function that initializes a builder to create theDeleteIndexRequest
- See Also:
-
deleteAlias
Removes a data stream or index from an alias.- See Also:
-
deleteAlias
public final CompletableFuture<DeleteAliasResponse> deleteAlias(Function<DeleteAliasRequest.Builder, ObjectBuilder<DeleteAliasRequest>> fn) Removes a data stream or index from an alias.- Parameters:
fn
- a function that initializes a builder to create theDeleteAliasRequest
- See Also:
-
deleteDataLifecycle
public CompletableFuture<DeleteDataLifecycleResponse> deleteDataLifecycle(DeleteDataLifecycleRequest request) Removes the data lifecycle from a data stream rendering it not managed by the data stream lifecycle- See Also:
-
deleteDataLifecycle
public final CompletableFuture<DeleteDataLifecycleResponse> deleteDataLifecycle(Function<DeleteDataLifecycleRequest.Builder, ObjectBuilder<DeleteDataLifecycleRequest>> fn) Removes the data lifecycle from a data stream rendering it not managed by the data stream lifecycle- Parameters:
fn
- a function that initializes a builder to create theDeleteDataLifecycleRequest
- See Also:
-
deleteDataStream
public CompletableFuture<DeleteDataStreamResponse> deleteDataStream(DeleteDataStreamRequest request) Deletes one or more data streams and their backing indices.- See Also:
-
deleteDataStream
public final CompletableFuture<DeleteDataStreamResponse> deleteDataStream(Function<DeleteDataStreamRequest.Builder, ObjectBuilder<DeleteDataStreamRequest>> fn) Deletes one or more data streams and their backing indices.- Parameters:
fn
- a function that initializes a builder to create theDeleteDataStreamRequest
- See Also:
-
deleteIndexTemplate
public CompletableFuture<DeleteIndexTemplateResponse> deleteIndexTemplate(DeleteIndexTemplateRequest request) Delete an index template. The provided <index-template> may contain multiple template names separated by a comma. If multiple template names are specified then there is no wildcard support and the provided names should match completely with existing templates.- See Also:
-
deleteIndexTemplate
public final CompletableFuture<DeleteIndexTemplateResponse> deleteIndexTemplate(Function<DeleteIndexTemplateRequest.Builder, ObjectBuilder<DeleteIndexTemplateRequest>> fn) Delete an index template. The provided <index-template> may contain multiple template names separated by a comma. If multiple template names are specified then there is no wildcard support and the provided names should match completely with existing templates.- Parameters:
fn
- a function that initializes a builder to create theDeleteIndexTemplateRequest
- See Also:
-
deleteTemplate
Deletes a legacy index template.- See Also:
-
deleteTemplate
public final CompletableFuture<DeleteTemplateResponse> deleteTemplate(Function<DeleteTemplateRequest.Builder, ObjectBuilder<DeleteTemplateRequest>> fn) Deletes a legacy 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
Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min
,max
,sum
,value_count
andavg
) for each metric field grouped by a configured time interval.- See Also:
-
downsample
public final CompletableFuture<DownsampleResponse> downsample(Function<DownsampleRequest.Builder, ObjectBuilder<DownsampleRequest>> fn) Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min
,max
,sum
,value_count
andavg
) for each metric field grouped by a configured time interval.- Parameters:
fn
- a function that initializes a builder to create theDownsampleRequest
- See Also:
-
exists
Checks if a data stream, index, or alias exists.- See Also:
-
exists
public final CompletableFuture<BooleanResponse> exists(Function<ExistsRequest.Builder, ObjectBuilder<ExistsRequest>> fn) Checks if a data stream, index, or alias exists.- Parameters:
fn
- a function that initializes a builder to create theExistsRequest
- See Also:
-
existsAlias
Checks if an alias exists.- See Also:
-
existsAlias
public final CompletableFuture<BooleanResponse> existsAlias(Function<ExistsAliasRequest.Builder, ObjectBuilder<ExistsAliasRequest>> fn) Checks if an 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
Check existence of index templates. Returns information about whether a particular index template exists.- See Also:
-
existsTemplate
public final CompletableFuture<BooleanResponse> existsTemplate(Function<ExistsTemplateRequest.Builder, ObjectBuilder<ExistsTemplateRequest>> fn) Check existence of index templates. 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 field usage information for each shard and field of an index.- See Also:
-
fieldUsageStats
public final CompletableFuture<FieldUsageStatsResponse> fieldUsageStats(Function<FieldUsageStatsRequest.Builder, ObjectBuilder<FieldUsageStatsRequest>> fn) Returns field usage information for each shard and field of an index.- Parameters:
fn
- a function that initializes a builder to create theFieldUsageStatsRequest
- See Also:
-
flush
Flushes one or more data streams or indices.- See Also:
-
flush
public final CompletableFuture<FlushResponse> flush(Function<FlushRequest.Builder, ObjectBuilder<FlushRequest>> fn) Flushes one or more data streams or indices.- Parameters:
fn
- a function that initializes a builder to create theFlushRequest
- See Also:
-
flush
Flushes one or more data streams or 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. For data streams, the API returns information about the stream’s backing indices.- See Also:
-
get
public final CompletableFuture<GetIndexResponse> get(Function<GetIndexRequest.Builder, ObjectBuilder<GetIndexRequest>> fn) Returns information about one or more indices. For data streams, the API returns information about the stream’s backing indices.- Parameters:
fn
- a function that initializes a builder to create theGetIndexRequest
- See Also:
-
getAlias
Retrieves information for one or more aliases.- See Also:
-
getAlias
public final CompletableFuture<GetAliasResponse> getAlias(Function<GetAliasRequest.Builder, ObjectBuilder<GetAliasRequest>> fn) Retrieves information for one or more aliases.- Parameters:
fn
- a function that initializes a builder to create theGetAliasRequest
- See Also:
-
getAlias
Retrieves information for one or more aliases.- See Also:
-
getDataLifecycle
public CompletableFuture<GetDataLifecycleResponse> getDataLifecycle(GetDataLifecycleRequest request) Retrieves the data stream lifecycle configuration of one or more data streams.- See Also:
-
getDataLifecycle
public final CompletableFuture<GetDataLifecycleResponse> getDataLifecycle(Function<GetDataLifecycleRequest.Builder, ObjectBuilder<GetDataLifecycleRequest>> fn) Retrieves the data stream lifecycle configuration of one or more data streams.- Parameters:
fn
- a function that initializes a builder to create theGetDataLifecycleRequest
- See Also:
-
getDataStream
Retrieves information about one or more data streams.- See Also:
-
getDataStream
public final CompletableFuture<GetDataStreamResponse> getDataStream(Function<GetDataStreamRequest.Builder, ObjectBuilder<GetDataStreamRequest>> fn) Retrieves information about one or more data streams.- Parameters:
fn
- a function that initializes a builder to create theGetDataStreamRequest
- See Also:
-
getDataStream
Retrieves information about one or more data streams.- See Also:
-
getFieldMapping
Retrieves mapping definitions for one or more fields. For data streams, the API retrieves field mappings for the stream’s backing indices.- See Also:
-
getFieldMapping
public final CompletableFuture<GetFieldMappingResponse> getFieldMapping(Function<GetFieldMappingRequest.Builder, ObjectBuilder<GetFieldMappingRequest>> fn) Retrieves mapping definitions for one or more fields. For data streams, the API retrieves field mappings for the stream’s backing indices.- Parameters:
fn
- a function that initializes a builder to create theGetFieldMappingRequest
- See Also:
-
getIndexTemplate
public CompletableFuture<GetIndexTemplateResponse> getIndexTemplate(GetIndexTemplateRequest request) Get index templates. Returns information about one or more index templates.- See Also:
-
getIndexTemplate
public final CompletableFuture<GetIndexTemplateResponse> getIndexTemplate(Function<GetIndexTemplateRequest.Builder, ObjectBuilder<GetIndexTemplateRequest>> fn) Get index templates. Returns information about one or more index templates.- Parameters:
fn
- a function that initializes a builder to create theGetIndexTemplateRequest
- See Also:
-
getIndexTemplate
Get index templates. Returns information about one or more index templates.- See Also:
-
getMapping
Retrieves mapping definitions for one or more indices. For data streams, the API retrieves mappings for the stream’s backing indices.- See Also:
-
getMapping
public final CompletableFuture<GetMappingResponse> getMapping(Function<GetMappingRequest.Builder, ObjectBuilder<GetMappingRequest>> fn) Retrieves mapping definitions for one or more indices. For data streams, the API retrieves mappings for the stream’s backing indices.- Parameters:
fn
- a function that initializes a builder to create theGetMappingRequest
- See Also:
-
getMapping
Retrieves mapping definitions for one or more indices. For data streams, the API retrieves mappings for the stream’s backing indices.- See Also:
-
getSettings
Returns setting information for one or more indices. For data streams, returns setting information for the stream’s backing indices.- See Also:
-
getSettings
public final CompletableFuture<GetIndicesSettingsResponse> getSettings(Function<GetIndicesSettingsRequest.Builder, ObjectBuilder<GetIndicesSettingsRequest>> fn) Returns setting information for one or more indices. For data streams, returns setting information for the stream’s backing indices.- Parameters:
fn
- a function that initializes a builder to create theGetIndicesSettingsRequest
- See Also:
-
getSettings
Returns setting information for one or more indices. For data streams, returns setting information for the stream’s backing indices.- See Also:
-
getTemplate
Get index templates. Retrieves information about one or more index templates.- See Also:
-
getTemplate
public final CompletableFuture<GetTemplateResponse> getTemplate(Function<GetTemplateRequest.Builder, ObjectBuilder<GetTemplateRequest>> fn) Get index templates. Retrieves information about one or more index templates.- Parameters:
fn
- a function that initializes a builder to create theGetTemplateRequest
- See Also:
-
getTemplate
Get index templates. Retrieves information about one or more index templates.- See Also:
-
migrateToDataStream
public CompletableFuture<MigrateToDataStreamResponse> migrateToDataStream(MigrateToDataStreamRequest request) Converts an index alias to a data stream. You must have a matching index template that is data stream enabled. The alias must meet the following criteria: The alias must have a write index; All indices for the alias must have a@timestamp
field mapping of adate
ordate_nanos
field type; The alias must not have any filters; The alias must not use custom routing. If successful, the request removes the alias and creates a data stream with the same name. The indices for the alias become hidden backing indices for the stream. The write index for the alias becomes the write index for the stream.- See Also:
-
migrateToDataStream
public final CompletableFuture<MigrateToDataStreamResponse> migrateToDataStream(Function<MigrateToDataStreamRequest.Builder, ObjectBuilder<MigrateToDataStreamRequest>> fn) Converts an index alias to a data stream. You must have a matching index template that is data stream enabled. The alias must meet the following criteria: The alias must have a write index; All indices for the alias must have a@timestamp
field mapping of adate
ordate_nanos
field type; The alias must not have any filters; The alias must not use custom routing. If successful, the request removes the alias and creates a data stream with the same name. The indices for the alias become hidden backing indices for the stream. The write index for the alias becomes the write index for the stream.- Parameters:
fn
- a function that initializes a builder to create theMigrateToDataStreamRequest
- See Also:
-
modifyDataStream
public CompletableFuture<ModifyDataStreamResponse> modifyDataStream(ModifyDataStreamRequest request) Performs one or more data stream modification actions in a single atomic operation.- See Also:
-
modifyDataStream
public final CompletableFuture<ModifyDataStreamResponse> modifyDataStream(Function<ModifyDataStreamRequest.Builder, ObjectBuilder<ModifyDataStreamRequest>> fn) Performs one or more data stream modification actions in a single atomic operation.- Parameters:
fn
- a function that initializes a builder to create theModifyDataStreamRequest
- See Also:
-
open
Opens a closed index. For data streams, the API opens any closed backing indices.- See Also:
-
open
public final CompletableFuture<OpenResponse> open(Function<OpenRequest.Builder, ObjectBuilder<OpenRequest>> fn) Opens a closed index. For data streams, the API opens any closed backing indices.- 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
Adds a data stream or index to an alias.- See Also:
-
putAlias
public final CompletableFuture<PutAliasResponse> putAlias(Function<PutAliasRequest.Builder, ObjectBuilder<PutAliasRequest>> fn) Adds a data stream or index to an alias.- Parameters:
fn
- a function that initializes a builder to create thePutAliasRequest
- See Also:
-
putDataLifecycle
public CompletableFuture<PutDataLifecycleResponse> putDataLifecycle(PutDataLifecycleRequest request) Update the data lifecycle of the specified data streams.- See Also:
-
putDataLifecycle
public final CompletableFuture<PutDataLifecycleResponse> putDataLifecycle(Function<PutDataLifecycleRequest.Builder, ObjectBuilder<PutDataLifecycleRequest>> fn) Update the data lifecycle of the specified data streams.- Parameters:
fn
- a function that initializes a builder to create thePutDataLifecycleRequest
- See Also:
-
putIndexTemplate
public CompletableFuture<PutIndexTemplateResponse> putIndexTemplate(PutIndexTemplateRequest request) Create or update an index template. Index templates define settings, mappings, and aliases that can be applied automatically to new indices.- See Also:
-
putIndexTemplate
public final CompletableFuture<PutIndexTemplateResponse> putIndexTemplate(Function<PutIndexTemplateRequest.Builder, ObjectBuilder<PutIndexTemplateRequest>> fn) Create or update an index template. Index templates define settings, mappings, and aliases that can be applied automatically to new indices.- Parameters:
fn
- a function that initializes a builder to create thePutIndexTemplateRequest
- See Also:
-
putMapping
Adds new fields to an existing data stream or index. You can also use this API to change the search settings of existing fields. For data streams, these changes are applied to all backing indices by default.- See Also:
-
putMapping
public final CompletableFuture<PutMappingResponse> putMapping(Function<PutMappingRequest.Builder, ObjectBuilder<PutMappingRequest>> fn) Adds new fields to an existing data stream or index. You can also use this API to change the search settings of existing fields. For data streams, these changes are applied to all backing indices by default.- Parameters:
fn
- a function that initializes a builder to create thePutMappingRequest
- See Also:
-
putSettings
Changes a dynamic index setting in real time. For data streams, index setting changes are applied to all backing indices by default.- See Also:
-
putSettings
public final CompletableFuture<PutIndicesSettingsResponse> putSettings(Function<PutIndicesSettingsRequest.Builder, ObjectBuilder<PutIndicesSettingsRequest>> fn) Changes a dynamic index setting in real time. For data streams, index setting changes are applied to all backing indices by default.- Parameters:
fn
- a function that initializes a builder to create thePutIndicesSettingsRequest
- See Also:
-
putSettings
Changes a dynamic index setting in real time. For data streams, index setting changes are applied to all backing indices by default.- See Also:
-
putTemplate
Create or update an index template. Index templates define settings, mappings, and aliases that can be applied automatically to new indices.- See Also:
-
putTemplate
public final CompletableFuture<PutTemplateResponse> putTemplate(Function<PutTemplateRequest.Builder, ObjectBuilder<PutTemplateRequest>> fn) Create or update an index template. Index templates define settings, mappings, and aliases that can be applied automatically to new indices.- Parameters:
fn
- a function that initializes a builder to create thePutTemplateRequest
- See Also:
-
recovery
Returns information about ongoing and completed shard recoveries for one or more indices. For data streams, the API returns information for the stream’s backing indices.- See Also:
-
recovery
public final CompletableFuture<RecoveryResponse> recovery(Function<RecoveryRequest.Builder, ObjectBuilder<RecoveryRequest>> fn) Returns information about ongoing and completed shard recoveries for one or more indices. For data streams, the API returns information for the stream’s backing indices.- Parameters:
fn
- a function that initializes a builder to create theRecoveryRequest
- See Also:
-
recovery
Returns information about ongoing and completed shard recoveries for one or more indices. For data streams, the API returns information for the stream’s backing indices.- See Also:
-
refresh
A refresh makes recent operations performed on one or more indices available for search. For data streams, the API runs the refresh operation on the stream’s backing indices.- See Also:
-
refresh
public final CompletableFuture<RefreshResponse> refresh(Function<RefreshRequest.Builder, ObjectBuilder<RefreshRequest>> fn) A refresh makes recent operations performed on one or more indices available for search. For data streams, the API runs the refresh operation on the stream’s backing indices.- Parameters:
fn
- a function that initializes a builder to create theRefreshRequest
- See Also:
-
refresh
A refresh makes recent operations performed on one or more indices available for search. For data streams, the API runs the refresh operation on the stream’s backing 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. Multiple patterns and remote clusters are supported.- 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. Multiple patterns and remote clusters are supported.- Parameters:
fn
- a function that initializes a builder to create theResolveClusterRequest
- See Also:
-
resolveIndex
Resolves the specified name(s) and/or index patterns for indices, aliases, and data streams. Multiple patterns and remote clusters are supported.- See Also:
-
resolveIndex
public final CompletableFuture<ResolveIndexResponse> resolveIndex(Function<ResolveIndexRequest.Builder, ObjectBuilder<ResolveIndexRequest>> fn) Resolves the specified name(s) and/or index patterns for indices, aliases, and data streams. Multiple patterns and remote clusters are supported.- Parameters:
fn
- a function that initializes a builder to create theResolveIndexRequest
- See Also:
-
rollover
Creates a new index for a data stream or index alias.- See Also:
-
rollover
public final CompletableFuture<RolloverResponse> rollover(Function<RolloverRequest.Builder, ObjectBuilder<RolloverRequest>> fn) Creates a new index for a data stream or index alias.- Parameters:
fn
- a function that initializes a builder to create theRolloverRequest
- See Also:
-
segments
Returns low-level information about the Lucene segments in index shards. For data streams, the API returns information about the stream’s backing indices.- See Also:
-
segments
public final CompletableFuture<SegmentsResponse> segments(Function<SegmentsRequest.Builder, ObjectBuilder<SegmentsRequest>> fn) Returns low-level information about the Lucene segments in index shards. For data streams, the API returns information about the stream’s backing indices.- Parameters:
fn
- a function that initializes a builder to create theSegmentsRequest
- See Also:
-
segments
Returns low-level information about the Lucene segments in index shards. For data streams, the API returns information about the stream’s backing indices.- See Also:
-
shardStores
Retrieves store information about replica shards in one or more indices. For data streams, the API retrieves store information for the stream’s backing indices.- See Also:
-
shardStores
public final CompletableFuture<ShardStoresResponse> shardStores(Function<ShardStoresRequest.Builder, ObjectBuilder<ShardStoresRequest>> fn) Retrieves store information about replica shards in one or more indices. For data streams, the API retrieves store information for the stream’s backing indices.- Parameters:
fn
- a function that initializes a builder to create theShardStoresRequest
- See Also:
-
shardStores
Retrieves store information about replica shards in one or more indices. For data streams, the API retrieves store information for the stream’s backing indices.- See Also:
-
shrink
Shrinks 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) Shrinks 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 an index. Returns the index configuration that would be applied to the specified index from an existing index template.- See Also:
-
simulateIndexTemplate
public final CompletableFuture<SimulateIndexTemplateResponse> simulateIndexTemplate(Function<SimulateIndexTemplateRequest.Builder, ObjectBuilder<SimulateIndexTemplateRequest>> fn) Simulate an index. Returns the index configuration that would be applied to the specified index from an existing index template.- Parameters:
fn
- a function that initializes a builder to create theSimulateIndexTemplateRequest
- See Also:
-
simulateTemplate
public CompletableFuture<SimulateTemplateResponse> simulateTemplate(SimulateTemplateRequest request) Simulate an index template. Returns the index configuration that would be applied by a particular index template.- See Also:
-
simulateTemplate
public final CompletableFuture<SimulateTemplateResponse> simulateTemplate(Function<SimulateTemplateRequest.Builder, ObjectBuilder<SimulateTemplateRequest>> fn) Simulate an index template. Returns the index configuration that would be applied by a particular index template.- Parameters:
fn
- a function that initializes a builder to create theSimulateTemplateRequest
- See Also:
-
simulateTemplate
Simulate an index template. Returns the index configuration that would be applied by a particular index template.- See Also:
-
split
Splits 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) Splits 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
Returns statistics for one or more indices. For data streams, the API retrieves statistics for the stream’s backing indices.- See Also:
-
stats
public final CompletableFuture<IndicesStatsResponse> stats(Function<IndicesStatsRequest.Builder, ObjectBuilder<IndicesStatsRequest>> fn) Returns statistics for one or more indices. For data streams, the API retrieves statistics for the stream’s backing indices.- Parameters:
fn
- a function that initializes a builder to create theIndicesStatsRequest
- See Also:
-
stats
Returns statistics for one or more indices. For data streams, the API retrieves statistics for the stream’s backing indices.- See Also:
-
unfreeze
Unfreezes an index.- See Also:
-
unfreeze
public final CompletableFuture<UnfreezeResponse> unfreeze(Function<UnfreezeRequest.Builder, ObjectBuilder<UnfreezeRequest>> fn) Unfreezes an index.- Parameters:
fn
- a function that initializes a builder to create theUnfreezeRequest
- See Also:
-
updateAliases
Adds a data stream or index to an alias.- See Also:
-
updateAliases
public final CompletableFuture<UpdateAliasesResponse> updateAliases(Function<UpdateAliasesRequest.Builder, ObjectBuilder<UpdateAliasesRequest>> fn) Adds a data stream or index to an alias.- Parameters:
fn
- a function that initializes a builder to create theUpdateAliasesRequest
- See Also:
-
updateAliases
Adds a data stream or index to an alias.- See Also:
-
validateQuery
Validates a potentially expensive query without executing it.- See Also:
-
validateQuery
public final CompletableFuture<ValidateQueryResponse> validateQuery(Function<ValidateQueryRequest.Builder, ObjectBuilder<ValidateQueryRequest>> fn) Validates a potentially expensive query without executing it.- Parameters:
fn
- a function that initializes a builder to create theValidateQueryRequest
- See Also:
-
validateQuery
Validates a potentially expensive query without executing it.- See Also:
-