Class ElasticsearchIndicesAsyncClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchIndicesAsyncClient>
co.elastic.clients.elasticsearch.indices.ElasticsearchIndicesAsyncClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
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) Add an index block.Add an index block.analyze()
Get tokens from text analysis.analyze
(AnalyzeRequest request) Get tokens from text analysis.final CompletableFuture<AnalyzeResponse>
Get tokens from text analysis.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) Create an index.Create an index.createDataStream
(CreateDataStreamRequest request) Create a data stream.createDataStream
(Function<CreateDataStreamRequest.Builder, ObjectBuilder<CreateDataStreamRequest>> fn) Create a data stream.Get data stream stats.dataStreamsStats
(DataStreamsStatsRequest request) Get data stream stats.dataStreamsStats
(Function<DataStreamsStatsRequest.Builder, ObjectBuilder<DataStreamsStatsRequest>> fn) Get data stream stats.delete
(DeleteIndexRequest request) Delete indices.Delete indices.deleteAlias
(DeleteAliasRequest request) Delete an alias.Delete an alias.Delete data stream lifecycles.deleteDataLifecycle
(Function<DeleteDataLifecycleRequest.Builder, ObjectBuilder<DeleteDataLifecycleRequest>> fn) Delete data stream lifecycles.deleteDataStream
(DeleteDataStreamRequest request) Delete data streams.deleteDataStream
(Function<DeleteDataStreamRequest.Builder, ObjectBuilder<DeleteDataStreamRequest>> fn) Delete data streams.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) Check indices.final CompletableFuture<BooleanResponse>
Check indices.existsAlias
(ExistsAliasRequest request) Check aliases.final CompletableFuture<BooleanResponse>
Check aliases.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.Get the status for a data stream lifecycle.explainDataLifecycle
(Function<ExplainDataLifecycleRequest.Builder, ObjectBuilder<ExplainDataLifecycleRequest>> fn) Get the status for a data stream lifecycle.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) Get index information.Get index information.getAlias()
Get aliases.getAlias
(GetAliasRequest request) Get aliases.Get aliases.getDataLifecycle
(GetDataLifecycleRequest request) Get data stream lifecycles.getDataLifecycle
(Function<GetDataLifecycleRequest.Builder, ObjectBuilder<GetDataLifecycleRequest>> fn) Get data stream lifecycles.Get data streams.getDataStream
(GetDataStreamRequest request) Get data streams.Get data streams.getFieldMapping
(GetFieldMappingRequest request) Get mapping definitions.Get mapping definitions.Get index templates.getIndexTemplate
(GetIndexTemplateRequest request) Get index templates.getIndexTemplate
(Function<GetIndexTemplateRequest.Builder, ObjectBuilder<GetIndexTemplateRequest>> fn) Get index templates.Get mapping definitions.getMapping
(GetMappingRequest request) Get mapping definitions.Get mapping definitions.Get index settings.getSettings
(GetIndicesSettingsRequest request) Get index settings.getSettings
(Function<GetIndicesSettingsRequest.Builder, ObjectBuilder<GetIndicesSettingsRequest>> fn) Get index settings.Get index templates.getTemplate
(GetTemplateRequest request) Get index templates.Get index templates.Convert an index alias to a data stream.migrateToDataStream
(Function<MigrateToDataStreamRequest.Builder, ObjectBuilder<MigrateToDataStreamRequest>> fn) Convert an index alias to a data stream.modifyDataStream
(ModifyDataStreamRequest request) Update data streams.modifyDataStream
(Function<ModifyDataStreamRequest.Builder, ObjectBuilder<ModifyDataStreamRequest>> fn) Update data streams.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) Create or update an alias.Create or update an alias.putDataLifecycle
(PutDataLifecycleRequest request) Update data stream lifecycles.putDataLifecycle
(Function<PutDataLifecycleRequest.Builder, ObjectBuilder<PutDataLifecycleRequest>> fn) Update data stream lifecycles.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) Update field mappings.Update field mappings.Update index settings.putSettings
(PutIndicesSettingsRequest request) Update index settings.putSettings
(Function<PutIndicesSettingsRequest.Builder, ObjectBuilder<PutIndicesSettingsRequest>> fn) Update index settings.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()
Refresh an index.refresh
(RefreshRequest request) Refresh an index.final CompletableFuture<RefreshResponse>
Refresh an index.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) Roll over to a new index.Roll over to a new index.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.Create or update an alias.updateAliases
(UpdateAliasesRequest request) Create or update an alias.Create or update an alias.Validate a query.validateQuery
(ValidateQueryRequest request) Validate a query.Validate a query.withTransportOptions
(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, close, 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
Add an index block. Limits the operations allowed on an index by blocking specific operation types.- See Also:
-
addBlock
public final CompletableFuture<AddBlockResponse> addBlock(Function<AddBlockRequest.Builder, ObjectBuilder<AddBlockRequest>> fn) Add an index block. Limits the operations allowed on an index by blocking specific operation types.- Parameters:
fn
- a function that initializes a builder to create theAddBlockRequest
- See Also:
-
analyze
Get tokens from text analysis. The analyze API 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) Get tokens from text analysis. The analyze API 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
Get tokens from text analysis. The analyze API 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
Create an index. Creates a new index.- See Also:
-
create
public final CompletableFuture<CreateIndexResponse> create(Function<CreateIndexRequest.Builder, ObjectBuilder<CreateIndexRequest>> fn) Create an index. Creates a new index.- Parameters:
fn
- a function that initializes a builder to create theCreateIndexRequest
- See Also:
-
createDataStream
public CompletableFuture<CreateDataStreamResponse> createDataStream(CreateDataStreamRequest request) Create a data stream. 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) Create a data stream. 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) Get data stream stats. Retrieves statistics for one or more data streams.- See Also:
-
dataStreamsStats
public final CompletableFuture<DataStreamsStatsResponse> dataStreamsStats(Function<DataStreamsStatsRequest.Builder, ObjectBuilder<DataStreamsStatsRequest>> fn) Get data stream stats. Retrieves statistics for one or more data streams.- Parameters:
fn
- a function that initializes a builder to create theDataStreamsStatsRequest
- See Also:
-
dataStreamsStats
Get data stream stats. Retrieves statistics for one or more data streams.- See Also:
-
delete
Delete indices. Deletes one or more indices.- See Also:
-
delete
public final CompletableFuture<DeleteIndexResponse> delete(Function<DeleteIndexRequest.Builder, ObjectBuilder<DeleteIndexRequest>> fn) Delete indices. Deletes one or more indices.- Parameters:
fn
- a function that initializes a builder to create theDeleteIndexRequest
- See Also:
-
deleteAlias
Delete an alias. Removes a data stream or index from an alias.- See Also:
-
deleteAlias
public final CompletableFuture<DeleteAliasResponse> deleteAlias(Function<DeleteAliasRequest.Builder, ObjectBuilder<DeleteAliasRequest>> fn) Delete an alias. 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) Delete data stream lifecycles. Removes the data stream 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) Delete data stream lifecycles. Removes the data stream 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) Delete data streams. Deletes one or more data streams and their backing indices.- See Also:
-
deleteDataStream
public final CompletableFuture<DeleteDataStreamResponse> deleteDataStream(Function<DeleteDataStreamRequest.Builder, ObjectBuilder<DeleteDataStreamRequest>> fn) Delete data streams. 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
Check indices. Checks if one or more indices, index aliases, or data streams exist.- See Also:
-
exists
public final CompletableFuture<BooleanResponse> exists(Function<ExistsRequest.Builder, ObjectBuilder<ExistsRequest>> fn) Check indices. Checks if one or more indices, index aliases, or data streams exist.- Parameters:
fn
- a function that initializes a builder to create theExistsRequest
- See Also:
-
existsAlias
Check aliases. Checks if one or more data stream or index aliases exist.- See Also:
-
existsAlias
public final CompletableFuture<BooleanResponse> existsAlias(Function<ExistsAliasRequest.Builder, ObjectBuilder<ExistsAliasRequest>> fn) Check aliases. Checks if one or more data stream or index aliases exist.- 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) Get the status for a data stream lifecycle. Retrieves information about an index or data stream’s current data stream lifecycle status, such as time since index creation, time since rollover, the lifecycle configuration managing the index, or any errors encountered during lifecycle execution.- See Also:
-
explainDataLifecycle
public final CompletableFuture<ExplainDataLifecycleResponse> explainDataLifecycle(Function<ExplainDataLifecycleRequest.Builder, ObjectBuilder<ExplainDataLifecycleRequest>> fn) Get the status for a data stream lifecycle. Retrieves information about an index or data stream’s current data stream lifecycle status, such as time since index creation, time since rollover, the lifecycle configuration managing the index, or any errors encountered during lifecycle execution.- 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
Get index information. 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) Get index information. 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
Get aliases. Retrieves information for one or more data stream or index aliases.- See Also:
-
getAlias
public final CompletableFuture<GetAliasResponse> getAlias(Function<GetAliasRequest.Builder, ObjectBuilder<GetAliasRequest>> fn) Get aliases. Retrieves information for one or more data stream or index aliases.- Parameters:
fn
- a function that initializes a builder to create theGetAliasRequest
- See Also:
-
getAlias
Get aliases. Retrieves information for one or more data stream or index aliases.- See Also:
-
getDataLifecycle
public CompletableFuture<GetDataLifecycleResponse> getDataLifecycle(GetDataLifecycleRequest request) Get data stream lifecycles. 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) Get data stream lifecycles. 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
Get data streams. Retrieves information about one or more data streams.- See Also:
-
getDataStream
public final CompletableFuture<GetDataStreamResponse> getDataStream(Function<GetDataStreamRequest.Builder, ObjectBuilder<GetDataStreamRequest>> fn) Get data streams. Retrieves information about one or more data streams.- Parameters:
fn
- a function that initializes a builder to create theGetDataStreamRequest
- See Also:
-
getDataStream
Get data streams. Retrieves information about one or more data streams.- See Also:
-
getFieldMapping
Get mapping definitions. 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) Get mapping definitions. 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
Get mapping definitions. 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) Get mapping definitions. 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
Get mapping definitions. Retrieves mapping definitions for one or more indices. For data streams, the API retrieves mappings for the stream’s backing indices.- See Also:
-
getSettings
Get index settings. 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) Get index settings. 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
Get index settings. 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) Convert an index alias to a data stream. 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) Convert an index alias to a data stream. 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) Update data streams. 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) Update data streams. 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
Create or update an alias. Adds a data stream or index to an alias.- See Also:
-
putAlias
public final CompletableFuture<PutAliasResponse> putAlias(Function<PutAliasRequest.Builder, ObjectBuilder<PutAliasRequest>> fn) Create or update an alias. 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 data stream lifecycles. Update the data stream lifecycle of the specified data streams.- See Also:
-
putDataLifecycle
public final CompletableFuture<PutDataLifecycleResponse> putDataLifecycle(Function<PutDataLifecycleRequest.Builder, ObjectBuilder<PutDataLifecycleRequest>> fn) Update data stream lifecycles. Update the data stream 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
Update field mappings. 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) Update field mappings. 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
Update index settings. Changes dynamic index settings 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) Update index settings. Changes dynamic index settings 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
Update index settings. Changes dynamic index settings 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
Refresh an index. 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) Refresh an index. 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
Refresh an index. 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
Roll over to a new index. 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) Roll over to a new index. 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
Create or update an alias. Adds a data stream or index to an alias.- See Also:
-
updateAliases
public final CompletableFuture<UpdateAliasesResponse> updateAliases(Function<UpdateAliasesRequest.Builder, ObjectBuilder<UpdateAliasesRequest>> fn) Create or update an alias. Adds a data stream or index to an alias.- Parameters:
fn
- a function that initializes a builder to create theUpdateAliasesRequest
- See Also:
-
updateAliases
Create or update an alias. Adds a data stream or index to an alias.- See Also:
-
validateQuery
Validate a query. Validates a query without running it.- See Also:
-
validateQuery
public final CompletableFuture<ValidateQueryResponse> validateQuery(Function<ValidateQueryRequest.Builder, ObjectBuilder<ValidateQueryRequest>> fn) Validate a query. Validates a query without running it.- Parameters:
fn
- a function that initializes a builder to create theValidateQueryRequest
- See Also:
-
validateQuery
Validate a query. Validates a query without running it.- See Also:
-