Class OpenSearchIndicesAsyncClient
- java.lang.Object
-
- org.opensearch.client.ApiClient<OpenSearchTransport,OpenSearchIndicesAsyncClient>
-
- org.opensearch.client.opensearch.indices.OpenSearchIndicesAsyncClient
-
public class OpenSearchIndicesAsyncClient extends ApiClient<OpenSearchTransport,OpenSearchIndicesAsyncClient>
Client for the indices namespace.
-
-
Field Summary
-
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions
-
-
Constructor Summary
Constructors Constructor Description OpenSearchIndicesAsyncClient(OpenSearchTransport transport)OpenSearchIndicesAsyncClient(OpenSearchTransport transport, TransportOptions transportOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<AddBlockResponse>addBlock(java.util.function.Function<AddBlockRequest.Builder,ObjectBuilder<AddBlockRequest>> fn)Adds a block to an index.java.util.concurrent.CompletableFuture<AddBlockResponse>addBlock(AddBlockRequest request)Adds a block to an index.java.util.concurrent.CompletableFuture<AnalyzeResponse>analyze()Performs the analysis process on a text and return the tokens breakdown of the text.java.util.concurrent.CompletableFuture<AnalyzeResponse>analyze(java.util.function.Function<AnalyzeRequest.Builder,ObjectBuilder<AnalyzeRequest>> fn)Performs the analysis process on a text and return the tokens breakdown of the text.java.util.concurrent.CompletableFuture<AnalyzeResponse>analyze(AnalyzeRequest request)Performs the analysis process on a text and return the tokens breakdown of the text.java.util.concurrent.CompletableFuture<ClearCacheResponse>clearCache()Clears all or specific caches for one or more indices.java.util.concurrent.CompletableFuture<ClearCacheResponse>clearCache(java.util.function.Function<ClearCacheRequest.Builder,ObjectBuilder<ClearCacheRequest>> fn)Clears all or specific caches for one or more indices.java.util.concurrent.CompletableFuture<ClearCacheResponse>clearCache(ClearCacheRequest request)Clears all or specific caches for one or more indices.java.util.concurrent.CompletableFuture<CloneIndexResponse>clone(java.util.function.Function<CloneIndexRequest.Builder,ObjectBuilder<CloneIndexRequest>> fn)Clones an indexjava.util.concurrent.CompletableFuture<CloneIndexResponse>clone(CloneIndexRequest request)Clones an indexjava.util.concurrent.CompletableFuture<CloseIndexResponse>close(java.util.function.Function<CloseIndexRequest.Builder,ObjectBuilder<CloseIndexRequest>> fn)Closes an index.java.util.concurrent.CompletableFuture<CloseIndexResponse>close(CloseIndexRequest request)Closes an index.java.util.concurrent.CompletableFuture<CreateIndexResponse>create(java.util.function.Function<CreateIndexRequest.Builder,ObjectBuilder<CreateIndexRequest>> fn)Creates an index with optional settings and mappings.java.util.concurrent.CompletableFuture<CreateIndexResponse>create(CreateIndexRequest request)Creates an index with optional settings and mappings.java.util.concurrent.CompletableFuture<CreateDataStreamResponse>createDataStream(java.util.function.Function<CreateDataStreamRequest.Builder,ObjectBuilder<CreateDataStreamRequest>> fn)Creates a data streamjava.util.concurrent.CompletableFuture<CreateDataStreamResponse>createDataStream(CreateDataStreamRequest request)Creates a data streamjava.util.concurrent.CompletableFuture<DataStreamsStatsResponse>dataStreamsStats()Returns statistics of data streamsjava.util.concurrent.CompletableFuture<DataStreamsStatsResponse>dataStreamsStats(java.util.function.Function<DataStreamsStatsRequest.Builder,ObjectBuilder<DataStreamsStatsRequest>> fn)Returns statistics of data streamsjava.util.concurrent.CompletableFuture<DataStreamsStatsResponse>dataStreamsStats(DataStreamsStatsRequest request)Returns statistics of data streamsjava.util.concurrent.CompletableFuture<DeleteIndexResponse>delete(java.util.function.Function<DeleteIndexRequest.Builder,ObjectBuilder<DeleteIndexRequest>> fn)Deletes an index.java.util.concurrent.CompletableFuture<DeleteIndexResponse>delete(DeleteIndexRequest request)Deletes an index.java.util.concurrent.CompletableFuture<DeleteAliasResponse>deleteAlias(java.util.function.Function<DeleteAliasRequest.Builder,ObjectBuilder<DeleteAliasRequest>> fn)Deletes an alias.java.util.concurrent.CompletableFuture<DeleteAliasResponse>deleteAlias(DeleteAliasRequest request)Deletes an alias.java.util.concurrent.CompletableFuture<DeleteDataStreamResponse>deleteDataStream(java.util.function.Function<DeleteDataStreamRequest.Builder,ObjectBuilder<DeleteDataStreamRequest>> fn)Deletes one or more data streams and their backing indices.java.util.concurrent.CompletableFuture<DeleteDataStreamResponse>deleteDataStream(DeleteDataStreamRequest request)Deletes one or more data streams and their backing indices.java.util.concurrent.CompletableFuture<DeleteIndexTemplateResponse>deleteIndexTemplate(java.util.function.Function<DeleteIndexTemplateRequest.Builder,ObjectBuilder<DeleteIndexTemplateRequest>> fn)Deletes an index template.java.util.concurrent.CompletableFuture<DeleteIndexTemplateResponse>deleteIndexTemplate(DeleteIndexTemplateRequest request)Deletes an index template.java.util.concurrent.CompletableFuture<DeleteTemplateResponse>deleteTemplate(java.util.function.Function<DeleteTemplateRequest.Builder,ObjectBuilder<DeleteTemplateRequest>> fn)Deletes an index template.java.util.concurrent.CompletableFuture<DeleteTemplateResponse>deleteTemplate(DeleteTemplateRequest request)Deletes an index template.java.util.concurrent.CompletableFuture<DiskUsageResponse>diskUsage(java.util.function.Function<DiskUsageRequest.Builder,ObjectBuilder<DiskUsageRequest>> fn)Analyzes the disk usage of each field of an index or data streamjava.util.concurrent.CompletableFuture<DiskUsageResponse>diskUsage(DiskUsageRequest request)Analyzes the disk usage of each field of an index or data streamjava.util.concurrent.CompletableFuture<BooleanResponse>exists(java.util.function.Function<ExistsRequest.Builder,ObjectBuilder<ExistsRequest>> fn)Returns information about whether a particular index exists.java.util.concurrent.CompletableFuture<BooleanResponse>exists(ExistsRequest request)Returns information about whether a particular index exists.java.util.concurrent.CompletableFuture<BooleanResponse>existsAlias(java.util.function.Function<ExistsAliasRequest.Builder,ObjectBuilder<ExistsAliasRequest>> fn)Returns information about whether a particular alias exists.java.util.concurrent.CompletableFuture<BooleanResponse>existsAlias(ExistsAliasRequest request)Returns information about whether a particular alias exists.java.util.concurrent.CompletableFuture<BooleanResponse>existsIndexTemplate(java.util.function.Function<ExistsIndexTemplateRequest.Builder,ObjectBuilder<ExistsIndexTemplateRequest>> fn)Returns information about whether a particular index template exists.java.util.concurrent.CompletableFuture<BooleanResponse>existsIndexTemplate(ExistsIndexTemplateRequest request)Returns information about whether a particular index template exists.java.util.concurrent.CompletableFuture<BooleanResponse>existsTemplate(java.util.function.Function<ExistsTemplateRequest.Builder,ObjectBuilder<ExistsTemplateRequest>> fn)Returns information about whether a particular index template exists.java.util.concurrent.CompletableFuture<BooleanResponse>existsTemplate(ExistsTemplateRequest request)Returns information about whether a particular index template exists.java.util.concurrent.CompletableFuture<FlushResponse>flush()Performs the flush operation on one or more indices.java.util.concurrent.CompletableFuture<FlushResponse>flush(java.util.function.Function<FlushRequest.Builder,ObjectBuilder<FlushRequest>> fn)Performs the flush operation on one or more indices.java.util.concurrent.CompletableFuture<FlushResponse>flush(FlushRequest request)Performs the flush operation on one or more indices.java.util.concurrent.CompletableFuture<ForcemergeResponse>forcemerge()Performs the force merge operation on one or more indices.java.util.concurrent.CompletableFuture<ForcemergeResponse>forcemerge(java.util.function.Function<ForcemergeRequest.Builder,ObjectBuilder<ForcemergeRequest>> fn)Performs the force merge operation on one or more indices.java.util.concurrent.CompletableFuture<ForcemergeResponse>forcemerge(ForcemergeRequest request)Performs the force merge operation on one or more indices.java.util.concurrent.CompletableFuture<GetIndexResponse>get(java.util.function.Function<GetIndexRequest.Builder,ObjectBuilder<GetIndexRequest>> fn)Returns information about one or more indices.java.util.concurrent.CompletableFuture<GetIndexResponse>get(GetIndexRequest request)Returns information about one or more indices.java.util.concurrent.CompletableFuture<GetAliasResponse>getAlias()Returns an alias.java.util.concurrent.CompletableFuture<GetAliasResponse>getAlias(java.util.function.Function<GetAliasRequest.Builder,ObjectBuilder<GetAliasRequest>> fn)Returns an alias.java.util.concurrent.CompletableFuture<GetAliasResponse>getAlias(GetAliasRequest request)Returns an alias.java.util.concurrent.CompletableFuture<GetDataStreamResponse>getDataStream()Returns information about one or more data streams.java.util.concurrent.CompletableFuture<GetDataStreamResponse>getDataStream(java.util.function.Function<GetDataStreamRequest.Builder,ObjectBuilder<GetDataStreamRequest>> fn)Returns information about one or more data streams.java.util.concurrent.CompletableFuture<GetDataStreamResponse>getDataStream(GetDataStreamRequest request)Returns information about one or more data streams.java.util.concurrent.CompletableFuture<GetFieldMappingResponse>getFieldMapping(java.util.function.Function<GetFieldMappingRequest.Builder,ObjectBuilder<GetFieldMappingRequest>> fn)Returns mapping for one or more fields.java.util.concurrent.CompletableFuture<GetFieldMappingResponse>getFieldMapping(GetFieldMappingRequest request)Returns mapping for one or more fields.java.util.concurrent.CompletableFuture<GetIndexTemplateResponse>getIndexTemplate()Returns an index template.java.util.concurrent.CompletableFuture<GetIndexTemplateResponse>getIndexTemplate(java.util.function.Function<GetIndexTemplateRequest.Builder,ObjectBuilder<GetIndexTemplateRequest>> fn)Returns an index template.java.util.concurrent.CompletableFuture<GetIndexTemplateResponse>getIndexTemplate(GetIndexTemplateRequest request)Returns an index template.java.util.concurrent.CompletableFuture<GetMappingResponse>getMapping()Returns mappings for one or more indices.java.util.concurrent.CompletableFuture<GetMappingResponse>getMapping(java.util.function.Function<GetMappingRequest.Builder,ObjectBuilder<GetMappingRequest>> fn)Returns mappings for one or more indices.java.util.concurrent.CompletableFuture<GetMappingResponse>getMapping(GetMappingRequest request)Returns mappings for one or more indices.java.util.concurrent.CompletableFuture<GetIndicesSettingsResponse>getSettings()Returns settings for one or more indices.java.util.concurrent.CompletableFuture<GetIndicesSettingsResponse>getSettings(java.util.function.Function<GetIndicesSettingsRequest.Builder,ObjectBuilder<GetIndicesSettingsRequest>> fn)Returns settings for one or more indices.java.util.concurrent.CompletableFuture<GetIndicesSettingsResponse>getSettings(GetIndicesSettingsRequest request)Returns settings for one or more indices.java.util.concurrent.CompletableFuture<GetTemplateResponse>getTemplate()Returns an index template.java.util.concurrent.CompletableFuture<GetTemplateResponse>getTemplate(java.util.function.Function<GetTemplateRequest.Builder,ObjectBuilder<GetTemplateRequest>> fn)Returns an index template.java.util.concurrent.CompletableFuture<GetTemplateResponse>getTemplate(GetTemplateRequest request)Returns an index template.java.util.concurrent.CompletableFuture<GetUpgradeResponse>getUpgrade()DEPRECATED Returns a progress status of current upgrade.java.util.concurrent.CompletableFuture<GetUpgradeResponse>getUpgrade(java.util.function.Function<GetUpgradeRequest.Builder,ObjectBuilder<GetUpgradeRequest>> fn)DEPRECATED Returns a progress status of current upgrade.java.util.concurrent.CompletableFuture<GetUpgradeResponse>getUpgrade(GetUpgradeRequest request)DEPRECATED Returns a progress status of current upgrade.java.util.concurrent.CompletableFuture<OpenResponse>open(java.util.function.Function<OpenRequest.Builder,ObjectBuilder<OpenRequest>> fn)Opens an index.java.util.concurrent.CompletableFuture<OpenResponse>open(OpenRequest request)Opens an index.java.util.concurrent.CompletableFuture<PutAliasResponse>putAlias(java.util.function.Function<PutAliasRequest.Builder,ObjectBuilder<PutAliasRequest>> fn)Creates or updates an alias.java.util.concurrent.CompletableFuture<PutAliasResponse>putAlias(PutAliasRequest request)Creates or updates an alias.java.util.concurrent.CompletableFuture<PutIndexTemplateResponse>putIndexTemplate(java.util.function.Function<PutIndexTemplateRequest.Builder,ObjectBuilder<PutIndexTemplateRequest>> fn)Creates or updates an index template.java.util.concurrent.CompletableFuture<PutIndexTemplateResponse>putIndexTemplate(PutIndexTemplateRequest request)Creates or updates an index template.java.util.concurrent.CompletableFuture<PutMappingResponse>putMapping(java.util.function.Function<PutMappingRequest.Builder,ObjectBuilder<PutMappingRequest>> fn)Updates the index mappings.java.util.concurrent.CompletableFuture<PutMappingResponse>putMapping(PutMappingRequest request)Updates the index mappings.java.util.concurrent.CompletableFuture<PutIndicesSettingsResponse>putSettings()Updates the index settings.java.util.concurrent.CompletableFuture<PutIndicesSettingsResponse>putSettings(java.util.function.Function<PutIndicesSettingsRequest.Builder,ObjectBuilder<PutIndicesSettingsRequest>> fn)Updates the index settings.java.util.concurrent.CompletableFuture<PutIndicesSettingsResponse>putSettings(PutIndicesSettingsRequest request)Updates the index settings.java.util.concurrent.CompletableFuture<PutTemplateResponse>putTemplate(java.util.function.Function<PutTemplateRequest.Builder,ObjectBuilder<PutTemplateRequest>> fn)Creates or updates an index template.java.util.concurrent.CompletableFuture<PutTemplateResponse>putTemplate(PutTemplateRequest request)Creates or updates an index template.java.util.concurrent.CompletableFuture<RecoveryResponse>recovery()Returns information about ongoing index shard recoveries.java.util.concurrent.CompletableFuture<RecoveryResponse>recovery(java.util.function.Function<RecoveryRequest.Builder,ObjectBuilder<RecoveryRequest>> fn)Returns information about ongoing index shard recoveries.java.util.concurrent.CompletableFuture<RecoveryResponse>recovery(RecoveryRequest request)Returns information about ongoing index shard recoveries.java.util.concurrent.CompletableFuture<RefreshResponse>refresh()Performs the refresh operation in one or more indices.java.util.concurrent.CompletableFuture<RefreshResponse>refresh(java.util.function.Function<RefreshRequest.Builder,ObjectBuilder<RefreshRequest>> fn)Performs the refresh operation in one or more indices.java.util.concurrent.CompletableFuture<RefreshResponse>refresh(RefreshRequest request)Performs the refresh operation in one or more indices.java.util.concurrent.CompletableFuture<ResolveIndexResponse>resolveIndex(java.util.function.Function<ResolveIndexRequest.Builder,ObjectBuilder<ResolveIndexRequest>> fn)Returns information about any matching indices, aliases, and data streamsjava.util.concurrent.CompletableFuture<ResolveIndexResponse>resolveIndex(ResolveIndexRequest request)Returns information about any matching indices, aliases, and data streamsjava.util.concurrent.CompletableFuture<RolloverResponse>rollover(java.util.function.Function<RolloverRequest.Builder,ObjectBuilder<RolloverRequest>> fn)Updates an alias to point to a new index when the existing index is considered to be too large or too old.java.util.concurrent.CompletableFuture<RolloverResponse>rollover(RolloverRequest request)Updates an alias to point to a new index when the existing index is considered to be too large or too old.java.util.concurrent.CompletableFuture<SegmentsResponse>segments()Provides low-level information about segments in a Lucene index.java.util.concurrent.CompletableFuture<SegmentsResponse>segments(java.util.function.Function<SegmentsRequest.Builder,ObjectBuilder<SegmentsRequest>> fn)Provides low-level information about segments in a Lucene index.java.util.concurrent.CompletableFuture<SegmentsResponse>segments(SegmentsRequest request)Provides low-level information about segments in a Lucene index.java.util.concurrent.CompletableFuture<ShardStoresResponse>shardStores()Provides store information for shard copies of indices.java.util.concurrent.CompletableFuture<ShardStoresResponse>shardStores(java.util.function.Function<ShardStoresRequest.Builder,ObjectBuilder<ShardStoresRequest>> fn)Provides store information for shard copies of indices.java.util.concurrent.CompletableFuture<ShardStoresResponse>shardStores(ShardStoresRequest request)Provides store information for shard copies of indices.java.util.concurrent.CompletableFuture<ShrinkResponse>shrink(java.util.function.Function<ShrinkRequest.Builder,ObjectBuilder<ShrinkRequest>> fn)Allow to shrink an existing index into a new index with fewer primary shards.java.util.concurrent.CompletableFuture<ShrinkResponse>shrink(ShrinkRequest request)Allow to shrink an existing index into a new index with fewer primary shards.java.util.concurrent.CompletableFuture<SimulateIndexTemplateResponse>simulateIndexTemplate(java.util.function.Function<SimulateIndexTemplateRequest.Builder,ObjectBuilder<SimulateIndexTemplateRequest>> fn)Simulate matching the given index name against the index templates in the systemjava.util.concurrent.CompletableFuture<SimulateIndexTemplateResponse>simulateIndexTemplate(SimulateIndexTemplateRequest request)Simulate matching the given index name against the index templates in the systemjava.util.concurrent.CompletableFuture<SimulateTemplateResponse>simulateTemplate()Simulate resolving the given template name or bodyjava.util.concurrent.CompletableFuture<SimulateTemplateResponse>simulateTemplate(java.util.function.Function<SimulateTemplateRequest.Builder,ObjectBuilder<SimulateTemplateRequest>> fn)Simulate resolving the given template name or bodyjava.util.concurrent.CompletableFuture<SimulateTemplateResponse>simulateTemplate(SimulateTemplateRequest request)Simulate resolving the given template name or bodyjava.util.concurrent.CompletableFuture<SplitResponse>split(java.util.function.Function<SplitRequest.Builder,ObjectBuilder<SplitRequest>> fn)Allows you to split an existing index into a new index with more primary shards.java.util.concurrent.CompletableFuture<SplitResponse>split(SplitRequest request)Allows you to split an existing index into a new index with more primary shards.java.util.concurrent.CompletableFuture<IndicesStatsResponse>stats()Provides statistics on operations happening in an index.java.util.concurrent.CompletableFuture<IndicesStatsResponse>stats(java.util.function.Function<IndicesStatsRequest.Builder,ObjectBuilder<IndicesStatsRequest>> fn)Provides statistics on operations happening in an index.java.util.concurrent.CompletableFuture<IndicesStatsResponse>stats(IndicesStatsRequest request)Provides statistics on operations happening in an index.java.util.concurrent.CompletableFuture<UpdateAliasesResponse>updateAliases()Updates index aliases.java.util.concurrent.CompletableFuture<UpdateAliasesResponse>updateAliases(java.util.function.Function<UpdateAliasesRequest.Builder,ObjectBuilder<UpdateAliasesRequest>> fn)Updates index aliases.java.util.concurrent.CompletableFuture<UpdateAliasesResponse>updateAliases(UpdateAliasesRequest request)Updates index aliases.java.util.concurrent.CompletableFuture<UpgradeResponse>upgrade()DEPRECATED Upgrades to the current version of Lucene.java.util.concurrent.CompletableFuture<UpgradeResponse>upgrade(java.util.function.Function<UpgradeRequest.Builder,ObjectBuilder<UpgradeRequest>> fn)DEPRECATED Upgrades to the current version of Lucene.java.util.concurrent.CompletableFuture<UpgradeResponse>upgrade(UpgradeRequest request)DEPRECATED Upgrades to the current version of Lucene.java.util.concurrent.CompletableFuture<ValidateQueryResponse>validateQuery()Allows a user to validate a potentially expensive query without executing it.java.util.concurrent.CompletableFuture<ValidateQueryResponse>validateQuery(java.util.function.Function<ValidateQueryRequest.Builder,ObjectBuilder<ValidateQueryRequest>> fn)Allows a user to validate a potentially expensive query without executing it.java.util.concurrent.CompletableFuture<ValidateQueryResponse>validateQuery(ValidateQueryRequest request)Allows a user to validate a potentially expensive query without executing it.OpenSearchIndicesAsyncClientwithTransportOptions(TransportOptions transportOptions)Creates a new client with some request options-
Methods inherited from class org.opensearch.client.ApiClient
_transport, _transportOptions, getDeserializer
-
-
-
-
Constructor Detail
-
OpenSearchIndicesAsyncClient
public OpenSearchIndicesAsyncClient(OpenSearchTransport transport)
-
OpenSearchIndicesAsyncClient
public OpenSearchIndicesAsyncClient(OpenSearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Detail
-
withTransportOptions
public OpenSearchIndicesAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions)
Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<OpenSearchTransport,OpenSearchIndicesAsyncClient>
-
addBlock
public java.util.concurrent.CompletableFuture<AddBlockResponse> addBlock(AddBlockRequest request) throws java.io.IOException, OpenSearchException
Adds a block to an index.- Throws:
java.io.IOExceptionOpenSearchException
-
addBlock
public final java.util.concurrent.CompletableFuture<AddBlockResponse> addBlock(java.util.function.Function<AddBlockRequest.Builder,ObjectBuilder<AddBlockRequest>> fn) throws java.io.IOException, OpenSearchException
Adds a block to an index.- Parameters:
fn- a function that initializes a builder to create theAddBlockRequest- Throws:
java.io.IOExceptionOpenSearchException
-
analyze
public java.util.concurrent.CompletableFuture<AnalyzeResponse> analyze(AnalyzeRequest request) throws java.io.IOException, OpenSearchException
Performs the analysis process on a text and return the tokens breakdown of the text.- Throws:
java.io.IOExceptionOpenSearchException
-
analyze
public final java.util.concurrent.CompletableFuture<AnalyzeResponse> analyze(java.util.function.Function<AnalyzeRequest.Builder,ObjectBuilder<AnalyzeRequest>> fn) throws java.io.IOException, OpenSearchException
Performs the analysis process on a text and return the tokens breakdown of the text.- Parameters:
fn- a function that initializes a builder to create theAnalyzeRequest- Throws:
java.io.IOExceptionOpenSearchException
-
analyze
public java.util.concurrent.CompletableFuture<AnalyzeResponse> analyze() throws java.io.IOException, OpenSearchException
Performs the analysis process on a text and return the tokens breakdown of the text.- Throws:
java.io.IOExceptionOpenSearchException
-
clearCache
public java.util.concurrent.CompletableFuture<ClearCacheResponse> clearCache(ClearCacheRequest request) throws java.io.IOException, OpenSearchException
Clears all or specific caches for one or more indices.- Throws:
java.io.IOExceptionOpenSearchException
-
clearCache
public final java.util.concurrent.CompletableFuture<ClearCacheResponse> clearCache(java.util.function.Function<ClearCacheRequest.Builder,ObjectBuilder<ClearCacheRequest>> fn) throws java.io.IOException, OpenSearchException
Clears all or specific caches for one or more indices.- Parameters:
fn- a function that initializes a builder to create theClearCacheRequest- Throws:
java.io.IOExceptionOpenSearchException
-
clearCache
public java.util.concurrent.CompletableFuture<ClearCacheResponse> clearCache() throws java.io.IOException, OpenSearchException
Clears all or specific caches for one or more indices.- Throws:
java.io.IOExceptionOpenSearchException
-
clone
public java.util.concurrent.CompletableFuture<CloneIndexResponse> clone(CloneIndexRequest request) throws java.io.IOException, OpenSearchException
Clones an index- Throws:
java.io.IOExceptionOpenSearchException
-
clone
public final java.util.concurrent.CompletableFuture<CloneIndexResponse> clone(java.util.function.Function<CloneIndexRequest.Builder,ObjectBuilder<CloneIndexRequest>> fn) throws java.io.IOException, OpenSearchException
Clones an index- Parameters:
fn- a function that initializes a builder to create theCloneIndexRequest- Throws:
java.io.IOExceptionOpenSearchException
-
close
public java.util.concurrent.CompletableFuture<CloseIndexResponse> close(CloseIndexRequest request) throws java.io.IOException, OpenSearchException
Closes an index.- Throws:
java.io.IOExceptionOpenSearchException
-
close
public final java.util.concurrent.CompletableFuture<CloseIndexResponse> close(java.util.function.Function<CloseIndexRequest.Builder,ObjectBuilder<CloseIndexRequest>> fn) throws java.io.IOException, OpenSearchException
Closes an index.- Parameters:
fn- a function that initializes a builder to create theCloseIndexRequest- Throws:
java.io.IOExceptionOpenSearchException
-
create
public java.util.concurrent.CompletableFuture<CreateIndexResponse> create(CreateIndexRequest request) throws java.io.IOException, OpenSearchException
Creates an index with optional settings and mappings.- Throws:
java.io.IOExceptionOpenSearchException
-
create
public final java.util.concurrent.CompletableFuture<CreateIndexResponse> create(java.util.function.Function<CreateIndexRequest.Builder,ObjectBuilder<CreateIndexRequest>> fn) throws java.io.IOException, OpenSearchException
Creates an index with optional settings and mappings.- Parameters:
fn- a function that initializes a builder to create theCreateIndexRequest- Throws:
java.io.IOExceptionOpenSearchException
-
createDataStream
public java.util.concurrent.CompletableFuture<CreateDataStreamResponse> createDataStream(CreateDataStreamRequest request) throws java.io.IOException, OpenSearchException
Creates a data stream- Throws:
java.io.IOExceptionOpenSearchException
-
createDataStream
public java.util.concurrent.CompletableFuture<CreateDataStreamResponse> createDataStream(java.util.function.Function<CreateDataStreamRequest.Builder,ObjectBuilder<CreateDataStreamRequest>> fn) throws java.io.IOException, OpenSearchException
Creates a data stream- Parameters:
fn- a function that initializes a builder to create theCreateDataStreamRequest- Throws:
java.io.IOExceptionOpenSearchException
-
delete
public java.util.concurrent.CompletableFuture<DeleteIndexResponse> delete(DeleteIndexRequest request) throws java.io.IOException, OpenSearchException
Deletes an index.- Throws:
java.io.IOExceptionOpenSearchException
-
delete
public final java.util.concurrent.CompletableFuture<DeleteIndexResponse> delete(java.util.function.Function<DeleteIndexRequest.Builder,ObjectBuilder<DeleteIndexRequest>> fn) throws java.io.IOException, OpenSearchException
Deletes an index.- Parameters:
fn- a function that initializes a builder to create theDeleteIndexRequest- Throws:
java.io.IOExceptionOpenSearchException
-
deleteDataStream
public java.util.concurrent.CompletableFuture<DeleteDataStreamResponse> deleteDataStream(DeleteDataStreamRequest request) throws java.io.IOException, OpenSearchException
Deletes one or more data streams and their backing indices.- Throws:
java.io.IOExceptionOpenSearchException
-
deleteDataStream
public final java.util.concurrent.CompletableFuture<DeleteDataStreamResponse> deleteDataStream(java.util.function.Function<DeleteDataStreamRequest.Builder,ObjectBuilder<DeleteDataStreamRequest>> fn) throws java.io.IOException, OpenSearchException
Deletes one or more data streams and their backing indices.- Parameters:
fn- a function that initializes a builder to create theDeleteDataStreamRequest- Throws:
java.io.IOExceptionOpenSearchException
-
deleteAlias
public java.util.concurrent.CompletableFuture<DeleteAliasResponse> deleteAlias(DeleteAliasRequest request) throws java.io.IOException, OpenSearchException
Deletes an alias.- Throws:
java.io.IOExceptionOpenSearchException
-
deleteAlias
public final java.util.concurrent.CompletableFuture<DeleteAliasResponse> deleteAlias(java.util.function.Function<DeleteAliasRequest.Builder,ObjectBuilder<DeleteAliasRequest>> fn) throws java.io.IOException, OpenSearchException
Deletes an alias.- Parameters:
fn- a function that initializes a builder to create theDeleteAliasRequest- Throws:
java.io.IOExceptionOpenSearchException
-
deleteIndexTemplate
public java.util.concurrent.CompletableFuture<DeleteIndexTemplateResponse> deleteIndexTemplate(DeleteIndexTemplateRequest request) throws java.io.IOException, OpenSearchException
Deletes an index template.- Throws:
java.io.IOExceptionOpenSearchException
-
deleteIndexTemplate
public final java.util.concurrent.CompletableFuture<DeleteIndexTemplateResponse> deleteIndexTemplate(java.util.function.Function<DeleteIndexTemplateRequest.Builder,ObjectBuilder<DeleteIndexTemplateRequest>> fn) throws java.io.IOException, OpenSearchException
Deletes an index template.- Parameters:
fn- a function that initializes a builder to create theDeleteIndexTemplateRequest- Throws:
java.io.IOExceptionOpenSearchException
-
deleteTemplate
public java.util.concurrent.CompletableFuture<DeleteTemplateResponse> deleteTemplate(DeleteTemplateRequest request) throws java.io.IOException, OpenSearchException
Deletes an index template.- Throws:
java.io.IOExceptionOpenSearchException
-
deleteTemplate
public final java.util.concurrent.CompletableFuture<DeleteTemplateResponse> deleteTemplate(java.util.function.Function<DeleteTemplateRequest.Builder,ObjectBuilder<DeleteTemplateRequest>> fn) throws java.io.IOException, OpenSearchException
Deletes an index template.- Parameters:
fn- a function that initializes a builder to create theDeleteTemplateRequest- Throws:
java.io.IOExceptionOpenSearchException
-
diskUsage
public java.util.concurrent.CompletableFuture<DiskUsageResponse> diskUsage(DiskUsageRequest request) throws java.io.IOException, OpenSearchException
Analyzes the disk usage of each field of an index or data stream- Throws:
java.io.IOExceptionOpenSearchException
-
diskUsage
public final java.util.concurrent.CompletableFuture<DiskUsageResponse> diskUsage(java.util.function.Function<DiskUsageRequest.Builder,ObjectBuilder<DiskUsageRequest>> fn) throws java.io.IOException, OpenSearchException
Analyzes the disk usage of each field of an index or data stream- Parameters:
fn- a function that initializes a builder to create theDiskUsageRequest- Throws:
java.io.IOExceptionOpenSearchException
-
exists
public java.util.concurrent.CompletableFuture<BooleanResponse> exists(ExistsRequest request) throws java.io.IOException, OpenSearchException
Returns information about whether a particular index exists.- Throws:
java.io.IOExceptionOpenSearchException
-
exists
public final java.util.concurrent.CompletableFuture<BooleanResponse> exists(java.util.function.Function<ExistsRequest.Builder,ObjectBuilder<ExistsRequest>> fn) throws java.io.IOException, OpenSearchException
Returns information about whether a particular index exists.- Parameters:
fn- a function that initializes a builder to create theExistsRequest- Throws:
java.io.IOExceptionOpenSearchException
-
existsAlias
public java.util.concurrent.CompletableFuture<BooleanResponse> existsAlias(ExistsAliasRequest request) throws java.io.IOException, OpenSearchException
Returns information about whether a particular alias exists.- Throws:
java.io.IOExceptionOpenSearchException
-
existsAlias
public final java.util.concurrent.CompletableFuture<BooleanResponse> existsAlias(java.util.function.Function<ExistsAliasRequest.Builder,ObjectBuilder<ExistsAliasRequest>> fn) throws java.io.IOException, OpenSearchException
Returns information about whether a particular alias exists.- Parameters:
fn- a function that initializes a builder to create theExistsAliasRequest- Throws:
java.io.IOExceptionOpenSearchException
-
existsIndexTemplate
public java.util.concurrent.CompletableFuture<BooleanResponse> existsIndexTemplate(ExistsIndexTemplateRequest request) throws java.io.IOException, OpenSearchException
Returns information about whether a particular index template exists.- Throws:
java.io.IOExceptionOpenSearchException
-
existsIndexTemplate
public final java.util.concurrent.CompletableFuture<BooleanResponse> existsIndexTemplate(java.util.function.Function<ExistsIndexTemplateRequest.Builder,ObjectBuilder<ExistsIndexTemplateRequest>> fn) throws java.io.IOException, OpenSearchException
Returns information about whether a particular index template exists.- Parameters:
fn- a function that initializes a builder to create theExistsIndexTemplateRequest- Throws:
java.io.IOExceptionOpenSearchException
-
existsTemplate
public java.util.concurrent.CompletableFuture<BooleanResponse> existsTemplate(ExistsTemplateRequest request) throws java.io.IOException, OpenSearchException
Returns information about whether a particular index template exists.- Throws:
java.io.IOExceptionOpenSearchException
-
existsTemplate
public final java.util.concurrent.CompletableFuture<BooleanResponse> existsTemplate(java.util.function.Function<ExistsTemplateRequest.Builder,ObjectBuilder<ExistsTemplateRequest>> fn) throws java.io.IOException, OpenSearchException
Returns information about whether a particular index template exists.- Parameters:
fn- a function that initializes a builder to create theExistsTemplateRequest- Throws:
java.io.IOExceptionOpenSearchException
-
flush
public java.util.concurrent.CompletableFuture<FlushResponse> flush(FlushRequest request) throws java.io.IOException, OpenSearchException
Performs the flush operation on one or more indices.- Throws:
java.io.IOExceptionOpenSearchException
-
flush
public final java.util.concurrent.CompletableFuture<FlushResponse> flush(java.util.function.Function<FlushRequest.Builder,ObjectBuilder<FlushRequest>> fn) throws java.io.IOException, OpenSearchException
Performs the flush operation on one or more indices.- Parameters:
fn- a function that initializes a builder to create theFlushRequest- Throws:
java.io.IOExceptionOpenSearchException
-
flush
public java.util.concurrent.CompletableFuture<FlushResponse> flush() throws java.io.IOException, OpenSearchException
Performs the flush operation on one or more indices.- Throws:
java.io.IOExceptionOpenSearchException
-
forcemerge
public java.util.concurrent.CompletableFuture<ForcemergeResponse> forcemerge(ForcemergeRequest request) throws java.io.IOException, OpenSearchException
Performs the force merge operation on one or more indices.- Throws:
java.io.IOExceptionOpenSearchException
-
forcemerge
public final java.util.concurrent.CompletableFuture<ForcemergeResponse> forcemerge(java.util.function.Function<ForcemergeRequest.Builder,ObjectBuilder<ForcemergeRequest>> fn) throws java.io.IOException, OpenSearchException
Performs the force merge operation on one or more indices.- Parameters:
fn- a function that initializes a builder to create theForcemergeRequest- Throws:
java.io.IOExceptionOpenSearchException
-
forcemerge
public java.util.concurrent.CompletableFuture<ForcemergeResponse> forcemerge() throws java.io.IOException, OpenSearchException
Performs the force merge operation on one or more indices.- Throws:
java.io.IOExceptionOpenSearchException
-
get
public java.util.concurrent.CompletableFuture<GetIndexResponse> get(GetIndexRequest request) throws java.io.IOException, OpenSearchException
Returns information about one or more indices.- Throws:
java.io.IOExceptionOpenSearchException
-
get
public final java.util.concurrent.CompletableFuture<GetIndexResponse> get(java.util.function.Function<GetIndexRequest.Builder,ObjectBuilder<GetIndexRequest>> fn) throws java.io.IOException, OpenSearchException
Returns information about one or more indices.- Parameters:
fn- a function that initializes a builder to create theGetIndexRequest- Throws:
java.io.IOExceptionOpenSearchException
-
getDataStream
public java.util.concurrent.CompletableFuture<GetDataStreamResponse> getDataStream(GetDataStreamRequest request) throws java.io.IOException, OpenSearchException
Returns information about one or more data streams.- Throws:
java.io.IOExceptionOpenSearchException
-
getDataStream
public final java.util.concurrent.CompletableFuture<GetDataStreamResponse> getDataStream(java.util.function.Function<GetDataStreamRequest.Builder,ObjectBuilder<GetDataStreamRequest>> fn) throws java.io.IOException, OpenSearchException
Returns information about one or more data streams.- Parameters:
fn- a function that initializes a builder to create theGetDataStreamRequest- Throws:
java.io.IOExceptionOpenSearchException
-
getDataStream
public java.util.concurrent.CompletableFuture<GetDataStreamResponse> getDataStream() throws java.io.IOException, OpenSearchException
Returns information about one or more data streams.- Throws:
java.io.IOExceptionOpenSearchException
-
getAlias
public java.util.concurrent.CompletableFuture<GetAliasResponse> getAlias(GetAliasRequest request) throws java.io.IOException, OpenSearchException
Returns an alias.- Throws:
java.io.IOExceptionOpenSearchException
-
getAlias
public final java.util.concurrent.CompletableFuture<GetAliasResponse> getAlias(java.util.function.Function<GetAliasRequest.Builder,ObjectBuilder<GetAliasRequest>> fn) throws java.io.IOException, OpenSearchException
Returns an alias.- Parameters:
fn- a function that initializes a builder to create theGetAliasRequest- Throws:
java.io.IOExceptionOpenSearchException
-
getAlias
public java.util.concurrent.CompletableFuture<GetAliasResponse> getAlias() throws java.io.IOException, OpenSearchException
Returns an alias.- Throws:
java.io.IOExceptionOpenSearchException
-
getFieldMapping
public java.util.concurrent.CompletableFuture<GetFieldMappingResponse> getFieldMapping(GetFieldMappingRequest request) throws java.io.IOException, OpenSearchException
Returns mapping for one or more fields.- Throws:
java.io.IOExceptionOpenSearchException
-
getFieldMapping
public final java.util.concurrent.CompletableFuture<GetFieldMappingResponse> getFieldMapping(java.util.function.Function<GetFieldMappingRequest.Builder,ObjectBuilder<GetFieldMappingRequest>> fn) throws java.io.IOException, OpenSearchException
Returns mapping for one or more fields.- Parameters:
fn- a function that initializes a builder to create theGetFieldMappingRequest- Throws:
java.io.IOExceptionOpenSearchException
-
getIndexTemplate
public java.util.concurrent.CompletableFuture<GetIndexTemplateResponse> getIndexTemplate(GetIndexTemplateRequest request) throws java.io.IOException, OpenSearchException
Returns an index template.- Throws:
java.io.IOExceptionOpenSearchException
-
getIndexTemplate
public final java.util.concurrent.CompletableFuture<GetIndexTemplateResponse> getIndexTemplate(java.util.function.Function<GetIndexTemplateRequest.Builder,ObjectBuilder<GetIndexTemplateRequest>> fn) throws java.io.IOException, OpenSearchException
Returns an index template.- Parameters:
fn- a function that initializes a builder to create theGetIndexTemplateRequest- Throws:
java.io.IOExceptionOpenSearchException
-
getIndexTemplate
public java.util.concurrent.CompletableFuture<GetIndexTemplateResponse> getIndexTemplate() throws java.io.IOException, OpenSearchException
Returns an index template.- Throws:
java.io.IOExceptionOpenSearchException
-
getMapping
public java.util.concurrent.CompletableFuture<GetMappingResponse> getMapping(GetMappingRequest request) throws java.io.IOException, OpenSearchException
Returns mappings for one or more indices.- Throws:
java.io.IOExceptionOpenSearchException
-
getMapping
public final java.util.concurrent.CompletableFuture<GetMappingResponse> getMapping(java.util.function.Function<GetMappingRequest.Builder,ObjectBuilder<GetMappingRequest>> fn) throws java.io.IOException, OpenSearchException
Returns mappings for one or more indices.- Parameters:
fn- a function that initializes a builder to create theGetMappingRequest- Throws:
java.io.IOExceptionOpenSearchException
-
getMapping
public java.util.concurrent.CompletableFuture<GetMappingResponse> getMapping() throws java.io.IOException, OpenSearchException
Returns mappings for one or more indices.- Throws:
java.io.IOExceptionOpenSearchException
-
getSettings
public java.util.concurrent.CompletableFuture<GetIndicesSettingsResponse> getSettings(GetIndicesSettingsRequest request) throws java.io.IOException, OpenSearchException
Returns settings for one or more indices.- Throws:
java.io.IOExceptionOpenSearchException
-
getSettings
public final java.util.concurrent.CompletableFuture<GetIndicesSettingsResponse> getSettings(java.util.function.Function<GetIndicesSettingsRequest.Builder,ObjectBuilder<GetIndicesSettingsRequest>> fn) throws java.io.IOException, OpenSearchException
Returns settings for one or more indices.- Parameters:
fn- a function that initializes a builder to create theGetIndicesSettingsRequest- Throws:
java.io.IOExceptionOpenSearchException
-
getSettings
public java.util.concurrent.CompletableFuture<GetIndicesSettingsResponse> getSettings() throws java.io.IOException, OpenSearchException
Returns settings for one or more indices.- Throws:
java.io.IOExceptionOpenSearchException
-
getTemplate
public java.util.concurrent.CompletableFuture<GetTemplateResponse> getTemplate(GetTemplateRequest request) throws java.io.IOException, OpenSearchException
Returns an index template.- Throws:
java.io.IOExceptionOpenSearchException
-
getTemplate
public final java.util.concurrent.CompletableFuture<GetTemplateResponse> getTemplate(java.util.function.Function<GetTemplateRequest.Builder,ObjectBuilder<GetTemplateRequest>> fn) throws java.io.IOException, OpenSearchException
Returns an index template.- Parameters:
fn- a function that initializes a builder to create theGetTemplateRequest- Throws:
java.io.IOExceptionOpenSearchException
-
getTemplate
public java.util.concurrent.CompletableFuture<GetTemplateResponse> getTemplate() throws java.io.IOException, OpenSearchException
Returns an index template.- Throws:
java.io.IOExceptionOpenSearchException
-
getUpgrade
public java.util.concurrent.CompletableFuture<GetUpgradeResponse> getUpgrade(GetUpgradeRequest request) throws java.io.IOException, OpenSearchException
DEPRECATED Returns a progress status of current upgrade.- Throws:
java.io.IOExceptionOpenSearchException
-
getUpgrade
public final java.util.concurrent.CompletableFuture<GetUpgradeResponse> getUpgrade(java.util.function.Function<GetUpgradeRequest.Builder,ObjectBuilder<GetUpgradeRequest>> fn) throws java.io.IOException, OpenSearchException
DEPRECATED Returns a progress status of current upgrade.- Parameters:
fn- a function that initializes a builder to create theGetUpgradeRequest- Throws:
java.io.IOExceptionOpenSearchException
-
getUpgrade
public java.util.concurrent.CompletableFuture<GetUpgradeResponse> getUpgrade() throws java.io.IOException, OpenSearchException
DEPRECATED Returns a progress status of current upgrade.- Throws:
java.io.IOExceptionOpenSearchException
-
open
public java.util.concurrent.CompletableFuture<OpenResponse> open(OpenRequest request) throws java.io.IOException, OpenSearchException
Opens an index.- Throws:
java.io.IOExceptionOpenSearchException
-
open
public final java.util.concurrent.CompletableFuture<OpenResponse> open(java.util.function.Function<OpenRequest.Builder,ObjectBuilder<OpenRequest>> fn) throws java.io.IOException, OpenSearchException
Opens an index.- Parameters:
fn- a function that initializes a builder to create theOpenRequest- Throws:
java.io.IOExceptionOpenSearchException
-
putAlias
public java.util.concurrent.CompletableFuture<PutAliasResponse> putAlias(PutAliasRequest request) throws java.io.IOException, OpenSearchException
Creates or updates an alias.- Throws:
java.io.IOExceptionOpenSearchException
-
putAlias
public final java.util.concurrent.CompletableFuture<PutAliasResponse> putAlias(java.util.function.Function<PutAliasRequest.Builder,ObjectBuilder<PutAliasRequest>> fn) throws java.io.IOException, OpenSearchException
Creates or updates an alias.- Parameters:
fn- a function that initializes a builder to create thePutAliasRequest- Throws:
java.io.IOExceptionOpenSearchException
-
putIndexTemplate
public java.util.concurrent.CompletableFuture<PutIndexTemplateResponse> putIndexTemplate(PutIndexTemplateRequest request) throws java.io.IOException, OpenSearchException
Creates or updates an index template.- Throws:
java.io.IOExceptionOpenSearchException
-
putIndexTemplate
public final java.util.concurrent.CompletableFuture<PutIndexTemplateResponse> putIndexTemplate(java.util.function.Function<PutIndexTemplateRequest.Builder,ObjectBuilder<PutIndexTemplateRequest>> fn) throws java.io.IOException, OpenSearchException
Creates or updates an index template.- Parameters:
fn- a function that initializes a builder to create thePutIndexTemplateRequest- Throws:
java.io.IOExceptionOpenSearchException
-
putMapping
public java.util.concurrent.CompletableFuture<PutMappingResponse> putMapping(PutMappingRequest request) throws java.io.IOException, OpenSearchException
Updates the index mappings.- Throws:
java.io.IOExceptionOpenSearchException
-
putMapping
public final java.util.concurrent.CompletableFuture<PutMappingResponse> putMapping(java.util.function.Function<PutMappingRequest.Builder,ObjectBuilder<PutMappingRequest>> fn) throws java.io.IOException, OpenSearchException
Updates the index mappings.- Parameters:
fn- a function that initializes a builder to create thePutMappingRequest- Throws:
java.io.IOExceptionOpenSearchException
-
putSettings
public java.util.concurrent.CompletableFuture<PutIndicesSettingsResponse> putSettings(PutIndicesSettingsRequest request) throws java.io.IOException, OpenSearchException
Updates the index settings.- Throws:
java.io.IOExceptionOpenSearchException
-
putSettings
public final java.util.concurrent.CompletableFuture<PutIndicesSettingsResponse> putSettings(java.util.function.Function<PutIndicesSettingsRequest.Builder,ObjectBuilder<PutIndicesSettingsRequest>> fn) throws java.io.IOException, OpenSearchException
Updates the index settings.- Parameters:
fn- a function that initializes a builder to create thePutIndicesSettingsRequest- Throws:
java.io.IOExceptionOpenSearchException
-
putSettings
public java.util.concurrent.CompletableFuture<PutIndicesSettingsResponse> putSettings() throws java.io.IOException, OpenSearchException
Updates the index settings.- Throws:
java.io.IOExceptionOpenSearchException
-
putTemplate
public java.util.concurrent.CompletableFuture<PutTemplateResponse> putTemplate(PutTemplateRequest request) throws java.io.IOException, OpenSearchException
Creates or updates an index template.- Throws:
java.io.IOExceptionOpenSearchException
-
putTemplate
public final java.util.concurrent.CompletableFuture<PutTemplateResponse> putTemplate(java.util.function.Function<PutTemplateRequest.Builder,ObjectBuilder<PutTemplateRequest>> fn) throws java.io.IOException, OpenSearchException
Creates or updates an index template.- Parameters:
fn- a function that initializes a builder to create thePutTemplateRequest- Throws:
java.io.IOExceptionOpenSearchException
-
recovery
public java.util.concurrent.CompletableFuture<RecoveryResponse> recovery(RecoveryRequest request) throws java.io.IOException, OpenSearchException
Returns information about ongoing index shard recoveries.- Throws:
java.io.IOExceptionOpenSearchException
-
recovery
public final java.util.concurrent.CompletableFuture<RecoveryResponse> recovery(java.util.function.Function<RecoveryRequest.Builder,ObjectBuilder<RecoveryRequest>> fn) throws java.io.IOException, OpenSearchException
Returns information about ongoing index shard recoveries.- Parameters:
fn- a function that initializes a builder to create theRecoveryRequest- Throws:
java.io.IOExceptionOpenSearchException
-
recovery
public java.util.concurrent.CompletableFuture<RecoveryResponse> recovery() throws java.io.IOException, OpenSearchException
Returns information about ongoing index shard recoveries.- Throws:
java.io.IOExceptionOpenSearchException
-
refresh
public java.util.concurrent.CompletableFuture<RefreshResponse> refresh(RefreshRequest request) throws java.io.IOException, OpenSearchException
Performs the refresh operation in one or more indices.- Throws:
java.io.IOExceptionOpenSearchException
-
refresh
public final java.util.concurrent.CompletableFuture<RefreshResponse> refresh(java.util.function.Function<RefreshRequest.Builder,ObjectBuilder<RefreshRequest>> fn) throws java.io.IOException, OpenSearchException
Performs the refresh operation in one or more indices.- Parameters:
fn- a function that initializes a builder to create theRefreshRequest- Throws:
java.io.IOExceptionOpenSearchException
-
refresh
public java.util.concurrent.CompletableFuture<RefreshResponse> refresh() throws java.io.IOException, OpenSearchException
Performs the refresh operation in one or more indices.- Throws:
java.io.IOExceptionOpenSearchException
-
resolveIndex
public java.util.concurrent.CompletableFuture<ResolveIndexResponse> resolveIndex(ResolveIndexRequest request) throws java.io.IOException, OpenSearchException
Returns information about any matching indices, aliases, and data streams- Throws:
java.io.IOExceptionOpenSearchException
-
resolveIndex
public final java.util.concurrent.CompletableFuture<ResolveIndexResponse> resolveIndex(java.util.function.Function<ResolveIndexRequest.Builder,ObjectBuilder<ResolveIndexRequest>> fn) throws java.io.IOException, OpenSearchException
Returns information about any matching indices, aliases, and data streams- Parameters:
fn- a function that initializes a builder to create theResolveIndexRequest- Throws:
java.io.IOExceptionOpenSearchException
-
rollover
public java.util.concurrent.CompletableFuture<RolloverResponse> rollover(RolloverRequest request) throws java.io.IOException, OpenSearchException
Updates an alias to point to a new index when the existing index is considered to be too large or too old.- Throws:
java.io.IOExceptionOpenSearchException
-
rollover
public final java.util.concurrent.CompletableFuture<RolloverResponse> rollover(java.util.function.Function<RolloverRequest.Builder,ObjectBuilder<RolloverRequest>> fn) throws java.io.IOException, OpenSearchException
Updates an alias to point to a new index when the existing index is considered to be too large or too old.- Parameters:
fn- a function that initializes a builder to create theRolloverRequest- Throws:
java.io.IOExceptionOpenSearchException
-
segments
public java.util.concurrent.CompletableFuture<SegmentsResponse> segments(SegmentsRequest request) throws java.io.IOException, OpenSearchException
Provides low-level information about segments in a Lucene index.- Throws:
java.io.IOExceptionOpenSearchException
-
segments
public final java.util.concurrent.CompletableFuture<SegmentsResponse> segments(java.util.function.Function<SegmentsRequest.Builder,ObjectBuilder<SegmentsRequest>> fn) throws java.io.IOException, OpenSearchException
Provides low-level information about segments in a Lucene index.- Parameters:
fn- a function that initializes a builder to create theSegmentsRequest- Throws:
java.io.IOExceptionOpenSearchException
-
segments
public java.util.concurrent.CompletableFuture<SegmentsResponse> segments() throws java.io.IOException, OpenSearchException
Provides low-level information about segments in a Lucene index.- Throws:
java.io.IOExceptionOpenSearchException
-
shardStores
public java.util.concurrent.CompletableFuture<ShardStoresResponse> shardStores(ShardStoresRequest request) throws java.io.IOException, OpenSearchException
Provides store information for shard copies of indices.- Throws:
java.io.IOExceptionOpenSearchException
-
shardStores
public final java.util.concurrent.CompletableFuture<ShardStoresResponse> shardStores(java.util.function.Function<ShardStoresRequest.Builder,ObjectBuilder<ShardStoresRequest>> fn) throws java.io.IOException, OpenSearchException
Provides store information for shard copies of indices.- Parameters:
fn- a function that initializes a builder to create theShardStoresRequest- Throws:
java.io.IOExceptionOpenSearchException
-
shardStores
public java.util.concurrent.CompletableFuture<ShardStoresResponse> shardStores() throws java.io.IOException, OpenSearchException
Provides store information for shard copies of indices.- Throws:
java.io.IOExceptionOpenSearchException
-
shrink
public java.util.concurrent.CompletableFuture<ShrinkResponse> shrink(ShrinkRequest request) throws java.io.IOException, OpenSearchException
Allow to shrink an existing index into a new index with fewer primary shards.- Throws:
java.io.IOExceptionOpenSearchException
-
shrink
public final java.util.concurrent.CompletableFuture<ShrinkResponse> shrink(java.util.function.Function<ShrinkRequest.Builder,ObjectBuilder<ShrinkRequest>> fn) throws java.io.IOException, OpenSearchException
Allow to shrink an existing index into a new index with fewer primary shards.- Parameters:
fn- a function that initializes a builder to create theShrinkRequest- Throws:
java.io.IOExceptionOpenSearchException
-
simulateIndexTemplate
public java.util.concurrent.CompletableFuture<SimulateIndexTemplateResponse> simulateIndexTemplate(SimulateIndexTemplateRequest request) throws java.io.IOException, OpenSearchException
Simulate matching the given index name against the index templates in the system- Throws:
java.io.IOExceptionOpenSearchException
-
simulateIndexTemplate
public final java.util.concurrent.CompletableFuture<SimulateIndexTemplateResponse> simulateIndexTemplate(java.util.function.Function<SimulateIndexTemplateRequest.Builder,ObjectBuilder<SimulateIndexTemplateRequest>> fn) throws java.io.IOException, OpenSearchException
Simulate matching the given index name against the index templates in the system- Parameters:
fn- a function that initializes a builder to create theSimulateIndexTemplateRequest- Throws:
java.io.IOExceptionOpenSearchException
-
simulateTemplate
public java.util.concurrent.CompletableFuture<SimulateTemplateResponse> simulateTemplate(SimulateTemplateRequest request) throws java.io.IOException, OpenSearchException
Simulate resolving the given template name or body- Throws:
java.io.IOExceptionOpenSearchException
-
simulateTemplate
public final java.util.concurrent.CompletableFuture<SimulateTemplateResponse> simulateTemplate(java.util.function.Function<SimulateTemplateRequest.Builder,ObjectBuilder<SimulateTemplateRequest>> fn) throws java.io.IOException, OpenSearchException
Simulate resolving the given template name or body- Parameters:
fn- a function that initializes a builder to create theSimulateTemplateRequest- Throws:
java.io.IOExceptionOpenSearchException
-
simulateTemplate
public java.util.concurrent.CompletableFuture<SimulateTemplateResponse> simulateTemplate() throws java.io.IOException, OpenSearchException
Simulate resolving the given template name or body- Throws:
java.io.IOExceptionOpenSearchException
-
split
public java.util.concurrent.CompletableFuture<SplitResponse> split(SplitRequest request) throws java.io.IOException, OpenSearchException
Allows you to split an existing index into a new index with more primary shards.- Throws:
java.io.IOExceptionOpenSearchException
-
split
public final java.util.concurrent.CompletableFuture<SplitResponse> split(java.util.function.Function<SplitRequest.Builder,ObjectBuilder<SplitRequest>> fn) throws java.io.IOException, OpenSearchException
Allows you to split an existing index into a new index with more primary shards.- Parameters:
fn- a function that initializes a builder to create theSplitRequest- Throws:
java.io.IOExceptionOpenSearchException
-
stats
public java.util.concurrent.CompletableFuture<IndicesStatsResponse> stats(IndicesStatsRequest request) throws java.io.IOException, OpenSearchException
Provides statistics on operations happening in an index.- Throws:
java.io.IOExceptionOpenSearchException
-
stats
public final java.util.concurrent.CompletableFuture<IndicesStatsResponse> stats(java.util.function.Function<IndicesStatsRequest.Builder,ObjectBuilder<IndicesStatsRequest>> fn) throws java.io.IOException, OpenSearchException
Provides statistics on operations happening in an index.- Parameters:
fn- a function that initializes a builder to create theIndicesStatsRequest- Throws:
java.io.IOExceptionOpenSearchException
-
stats
public java.util.concurrent.CompletableFuture<IndicesStatsResponse> stats() throws java.io.IOException, OpenSearchException
Provides statistics on operations happening in an index.- Throws:
java.io.IOExceptionOpenSearchException
-
dataStreamsStats
public java.util.concurrent.CompletableFuture<DataStreamsStatsResponse> dataStreamsStats(DataStreamsStatsRequest request) throws java.io.IOException, OpenSearchException
Returns statistics of data streams- Throws:
java.io.IOExceptionOpenSearchException
-
dataStreamsStats
public final java.util.concurrent.CompletableFuture<DataStreamsStatsResponse> dataStreamsStats(java.util.function.Function<DataStreamsStatsRequest.Builder,ObjectBuilder<DataStreamsStatsRequest>> fn) throws java.io.IOException, OpenSearchException
Returns statistics of data streams- Parameters:
fn- a function that initializes a builder to create theDataStreamsStatsRequest- Throws:
java.io.IOExceptionOpenSearchException
-
dataStreamsStats
public java.util.concurrent.CompletableFuture<DataStreamsStatsResponse> dataStreamsStats() throws java.io.IOException, OpenSearchException
Returns statistics of data streams- Throws:
java.io.IOExceptionOpenSearchException
-
updateAliases
public java.util.concurrent.CompletableFuture<UpdateAliasesResponse> updateAliases(UpdateAliasesRequest request) throws java.io.IOException, OpenSearchException
Updates index aliases.- Throws:
java.io.IOExceptionOpenSearchException
-
updateAliases
public final java.util.concurrent.CompletableFuture<UpdateAliasesResponse> updateAliases(java.util.function.Function<UpdateAliasesRequest.Builder,ObjectBuilder<UpdateAliasesRequest>> fn) throws java.io.IOException, OpenSearchException
Updates index aliases.- Parameters:
fn- a function that initializes a builder to create theUpdateAliasesRequest- Throws:
java.io.IOExceptionOpenSearchException
-
updateAliases
public java.util.concurrent.CompletableFuture<UpdateAliasesResponse> updateAliases() throws java.io.IOException, OpenSearchException
Updates index aliases.- Throws:
java.io.IOExceptionOpenSearchException
-
upgrade
public java.util.concurrent.CompletableFuture<UpgradeResponse> upgrade(UpgradeRequest request) throws java.io.IOException, OpenSearchException
DEPRECATED Upgrades to the current version of Lucene.- Throws:
java.io.IOExceptionOpenSearchException
-
upgrade
public final java.util.concurrent.CompletableFuture<UpgradeResponse> upgrade(java.util.function.Function<UpgradeRequest.Builder,ObjectBuilder<UpgradeRequest>> fn) throws java.io.IOException, OpenSearchException
DEPRECATED Upgrades to the current version of Lucene.- Parameters:
fn- a function that initializes a builder to create theUpgradeRequest- Throws:
java.io.IOExceptionOpenSearchException
-
upgrade
public java.util.concurrent.CompletableFuture<UpgradeResponse> upgrade() throws java.io.IOException, OpenSearchException
DEPRECATED Upgrades to the current version of Lucene.- Throws:
java.io.IOExceptionOpenSearchException
-
validateQuery
public java.util.concurrent.CompletableFuture<ValidateQueryResponse> validateQuery(ValidateQueryRequest request) throws java.io.IOException, OpenSearchException
Allows a user to validate a potentially expensive query without executing it.- Throws:
java.io.IOExceptionOpenSearchException
-
validateQuery
public final java.util.concurrent.CompletableFuture<ValidateQueryResponse> validateQuery(java.util.function.Function<ValidateQueryRequest.Builder,ObjectBuilder<ValidateQueryRequest>> fn) throws java.io.IOException, OpenSearchException
Allows a user to validate a potentially expensive query without executing it.- Parameters:
fn- a function that initializes a builder to create theValidateQueryRequest- Throws:
java.io.IOExceptionOpenSearchException
-
validateQuery
public java.util.concurrent.CompletableFuture<ValidateQueryResponse> validateQuery() throws java.io.IOException, OpenSearchException
Allows a user to validate a potentially expensive query without executing it.- Throws:
java.io.IOExceptionOpenSearchException
-
-