Class OpenSearchIndicesClientBase<Self extends OpenSearchIndicesClientBase<Self>>
java.lang.Object
org.opensearch.client.ApiClient<OpenSearchTransport,Self>
org.opensearch.client.opensearch.indices.OpenSearchIndicesClientBase<Self>
- Direct Known Subclasses:
OpenSearchIndicesClient
@Generated("org.opensearch.client.codegen.CodeGenerator")
public abstract class OpenSearchIndicesClientBase<Self extends OpenSearchIndicesClientBase<Self>>
extends ApiClient<OpenSearchTransport,Self>
Client for the indices namespace.
-
Field Summary
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchIndicesClientBase(OpenSearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionfinal AddBlockResponseAdds a block to an index.addBlock(AddBlockRequest request) Adds a block to an index.final AnalyzeResponseanalyze()Performs the analysis process on a text and return the tokens breakdown of the text.final AnalyzeResponsePerforms the analysis process on a text and return the tokens breakdown of the text.analyze(AnalyzeRequest request) Performs the analysis process on a text and return the tokens breakdown of the text.final ClearCacheResponseClears all or specific caches for one or more indexes.final ClearCacheResponseClears all or specific caches for one or more indexes.clearCache(ClearCacheRequest request) Clears all or specific caches for one or more indexes.final CloneIndexResponseClones an index.clone(CloneIndexRequest request) Clones an index.final CloseIndexResponseCloses an index.close(CloseIndexRequest request) Closes an index.final CreateIndexResponseCreates an index with optional settings and mappings.create(CreateIndexRequest request) Creates an index with optional settings and mappings.final CreateDataStreamResponsecreateDataStream(Function<CreateDataStreamRequest.Builder, ObjectBuilder<CreateDataStreamRequest>> fn) Creates or updates a data stream.createDataStream(CreateDataStreamRequest request) Creates or updates a data stream.final DataStreamsStatsResponseProvides statistics on operations happening in a data stream.final DataStreamsStatsResponsedataStreamsStats(Function<DataStreamsStatsRequest.Builder, ObjectBuilder<DataStreamsStatsRequest>> fn) Provides statistics on operations happening in a data stream.dataStreamsStats(DataStreamsStatsRequest request) Provides statistics on operations happening in a data stream.final DeleteIndexResponseDeletes an index.delete(DeleteIndexRequest request) Deletes an index.final DeleteAliasResponseDeletes an alias.deleteAlias(DeleteAliasRequest request) Deletes an alias.final DeleteDataStreamResponsedeleteDataStream(Function<DeleteDataStreamRequest.Builder, ObjectBuilder<DeleteDataStreamRequest>> fn) Deletes a data stream.deleteDataStream(DeleteDataStreamRequest request) Deletes a data stream.deleteIndexTemplate(Function<DeleteIndexTemplateRequest.Builder, ObjectBuilder<DeleteIndexTemplateRequest>> fn) Deletes an index template.Deletes an index template.final DeleteTemplateResponseDeletes an index template.deleteTemplate(DeleteTemplateRequest request) Deletes an index template.final BooleanResponseReturns information about whether a particular index exists.exists(ExistsRequest request) Returns information about whether a particular index exists.final BooleanResponseReturns information about whether a particular alias exists.existsAlias(ExistsAliasRequest request) Returns information about whether a particular alias exists.final BooleanResponseexistsIndexTemplate(Function<ExistsIndexTemplateRequest.Builder, ObjectBuilder<ExistsIndexTemplateRequest>> fn) Returns information about whether a particular index template exists.Returns information about whether a particular index template exists.final BooleanResponseReturns information about whether a particular index template exists.existsTemplate(ExistsTemplateRequest request) Returns information about whether a particular index template exists.final FlushResponseflush()Performs the flush operation on one or more indexes.final FlushResponsePerforms the flush operation on one or more indexes.flush(FlushRequest request) Performs the flush operation on one or more indexes.final ForcemergeResponsePerforms the force merge operation on one or more indexes.final ForcemergeResponsePerforms the force merge operation on one or more indexes.forcemerge(ForcemergeRequest request) Performs the force merge operation on one or more indexes.final GetIndexResponseReturns information about one or more indexes.get(GetIndexRequest request) Returns information about one or more indexes.final GetAliasResponsegetAlias()Returns an alias.final GetAliasResponseReturns an alias.getAlias(GetAliasRequest request) Returns an alias.final GetDataStreamResponseReturns data streams.final GetDataStreamResponseReturns data streams.getDataStream(GetDataStreamRequest request) Returns data streams.final GetIndexTemplateResponseReturns an index template.final GetIndexTemplateResponsegetIndexTemplate(Function<GetIndexTemplateRequest.Builder, ObjectBuilder<GetIndexTemplateRequest>> fn) Returns an index template.getIndexTemplate(GetIndexTemplateRequest request) Returns an index template.final GetMappingResponseReturns mappings for one or more indexes.final GetMappingResponseReturns mappings for one or more indexes.getMapping(GetMappingRequest request) Returns mappings for one or more indexes.Returns settings for one or more indexes.getSettings(Function<GetIndicesSettingsRequest.Builder, ObjectBuilder<GetIndicesSettingsRequest>> fn) Returns settings for one or more indexes.getSettings(GetIndicesSettingsRequest request) Returns settings for one or more indexes.final GetTemplateResponseReturns an index template.final GetTemplateResponseReturns an index template.getTemplate(GetTemplateRequest request) Returns an index template.final OpenResponseOpens an index.open(OpenRequest request) Opens an index.final PutAliasResponseputAlias()Creates or updates an alias.final PutAliasResponseCreates or updates an alias.putAlias(PutAliasRequest request) Creates or updates an alias.final PutIndexTemplateResponseputIndexTemplate(Function<PutIndexTemplateRequest.Builder, ObjectBuilder<PutIndexTemplateRequest>> fn) Creates or updates an index template.putIndexTemplate(PutIndexTemplateRequest request) Creates or updates an index template.final PutMappingResponseUpdates the index mappings.putMapping(PutMappingRequest request) Updates the index mappings.putSettings(Function<PutIndicesSettingsRequest.Builder, ObjectBuilder<PutIndicesSettingsRequest>> fn) Updates the index settings.putSettings(PutIndicesSettingsRequest request) Updates the index settings.final PutTemplateResponseCreates or updates an index template.putTemplate(PutTemplateRequest request) Creates or updates an index template.final RecoveryResponserecovery()Returns information about ongoing index shard recoveries.final RecoveryResponseReturns information about ongoing index shard recoveries.recovery(RecoveryRequest request) Returns information about ongoing index shard recoveries.final RefreshResponserefresh()Performs the refresh operation in one or more indexes.final RefreshResponsePerforms the refresh operation in one or more indexes.refresh(RefreshRequest request) Performs the refresh operation in one or more indexes.final ResolveIndexResponseReturns information about any matching indexes, aliases, and data streams.resolveIndex(ResolveIndexRequest request) Returns information about any matching indexes, aliases, and data streams.final RolloverResponseUpdates an alias to point to a new index when the existing index is considered to be too large or too old.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.final SegmentsResponsesegments()Provides low-level information about segments in a Lucene index.final SegmentsResponseProvides low-level information about segments in a Lucene index.segments(SegmentsRequest request) Provides low-level information about segments in a Lucene index.final ShardStoresResponseProvides store information for shard copies of indexes.final ShardStoresResponseProvides store information for shard copies of indexes.shardStores(ShardStoresRequest request) Provides store information for shard copies of indexes.final ShrinkResponseAllow to shrink an existing index into a new index with fewer primary shards.shrink(ShrinkRequest request) Allow to shrink an existing index into a new index with fewer primary shards.simulateIndexTemplate(Function<SimulateIndexTemplateRequest.Builder, ObjectBuilder<SimulateIndexTemplateRequest>> fn) Simulate matching the given index name against the index templates in the system.Simulate matching the given index name against the index templates in the system.final SimulateTemplateResponsesimulateTemplate(Function<SimulateTemplateRequest.Builder, ObjectBuilder<SimulateTemplateRequest>> fn) Simulate resolving the given template name or body.simulateTemplate(SimulateTemplateRequest request) Simulate resolving the given template name or body.final SplitResponseAllows you to split an existing index into a new index with more primary shards.split(SplitRequest request) Allows you to split an existing index into a new index with more primary shards.final IndicesStatsResponsestats()Provides statistics on operations happening in an index.final IndicesStatsResponseProvides statistics on operations happening in an index.stats(IndicesStatsRequest request) Provides statistics on operations happening in an index.final UpdateAliasesResponseUpdates index aliases.final UpdateAliasesResponseUpdates index aliases.updateAliases(UpdateAliasesRequest request) Updates index aliases.final ValidateQueryResponseAllows a user to validate a potentially expensive query without executing it.final ValidateQueryResponseAllows a user to validate a potentially expensive query without executing it.validateQuery(ValidateQueryRequest request) Allows a user to validate a potentially expensive query without executing it.Methods inherited from class org.opensearch.client.ApiClient
_transport, _transportOptions, getDeserializer, withTransportOptions
-
Constructor Details
-
OpenSearchIndicesClientBase
public OpenSearchIndicesClientBase(OpenSearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
addBlock
Adds a block to an index.- Throws:
IOExceptionOpenSearchException
-
addBlock
public final AddBlockResponse addBlock(Function<AddBlockRequest.Builder, ObjectBuilder<AddBlockRequest>> fn) throws IOException, OpenSearchExceptionAdds a block to an index.- Parameters:
fn- a function that initializes a builder to create theAddBlockRequest- Throws:
IOExceptionOpenSearchException
-
analyze
Performs the analysis process on a text and return the tokens breakdown of the text.- Throws:
IOExceptionOpenSearchException
-
analyze
public final AnalyzeResponse analyze(Function<AnalyzeRequest.Builder, ObjectBuilder<AnalyzeRequest>> fn) throws IOException, OpenSearchExceptionPerforms 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:
IOExceptionOpenSearchException
-
analyze
Performs the analysis process on a text and return the tokens breakdown of the text.- Throws:
IOExceptionOpenSearchException
-
clearCache
public ClearCacheResponse clearCache(ClearCacheRequest request) throws IOException, OpenSearchException Clears all or specific caches for one or more indexes.- Throws:
IOExceptionOpenSearchException
-
clearCache
public final ClearCacheResponse clearCache(Function<ClearCacheRequest.Builder, ObjectBuilder<ClearCacheRequest>> fn) throws IOException, OpenSearchExceptionClears all or specific caches for one or more indexes.- Parameters:
fn- a function that initializes a builder to create theClearCacheRequest- Throws:
IOExceptionOpenSearchException
-
clearCache
Clears all or specific caches for one or more indexes.- Throws:
IOExceptionOpenSearchException
-
clone
Clones an index.- Throws:
IOExceptionOpenSearchException
-
clone
public final CloneIndexResponse clone(Function<CloneIndexRequest.Builder, ObjectBuilder<CloneIndexRequest>> fn) throws IOException, OpenSearchExceptionClones an index.- Parameters:
fn- a function that initializes a builder to create theCloneIndexRequest- Throws:
IOExceptionOpenSearchException
-
close
Closes an index.- Throws:
IOExceptionOpenSearchException
-
close
public final CloseIndexResponse close(Function<CloseIndexRequest.Builder, ObjectBuilder<CloseIndexRequest>> fn) throws IOException, OpenSearchExceptionCloses an index.- Parameters:
fn- a function that initializes a builder to create theCloseIndexRequest- Throws:
IOExceptionOpenSearchException
-
create
public CreateIndexResponse create(CreateIndexRequest request) throws IOException, OpenSearchException Creates an index with optional settings and mappings.- Throws:
IOExceptionOpenSearchException
-
create
public final CreateIndexResponse create(Function<CreateIndexRequest.Builder, ObjectBuilder<CreateIndexRequest>> fn) throws IOException, OpenSearchExceptionCreates an index with optional settings and mappings.- Parameters:
fn- a function that initializes a builder to create theCreateIndexRequest- Throws:
IOExceptionOpenSearchException
-
createDataStream
public CreateDataStreamResponse createDataStream(CreateDataStreamRequest request) throws IOException, OpenSearchException Creates or updates a data stream.- Throws:
IOExceptionOpenSearchException
-
createDataStream
public final CreateDataStreamResponse createDataStream(Function<CreateDataStreamRequest.Builder, ObjectBuilder<CreateDataStreamRequest>> fn) throws IOException, OpenSearchExceptionCreates or updates a data stream.- Parameters:
fn- a function that initializes a builder to create theCreateDataStreamRequest- Throws:
IOExceptionOpenSearchException
-
dataStreamsStats
public DataStreamsStatsResponse dataStreamsStats(DataStreamsStatsRequest request) throws IOException, OpenSearchException Provides statistics on operations happening in a data stream.- Throws:
IOExceptionOpenSearchException
-
dataStreamsStats
public final DataStreamsStatsResponse dataStreamsStats(Function<DataStreamsStatsRequest.Builder, ObjectBuilder<DataStreamsStatsRequest>> fn) throws IOException, OpenSearchExceptionProvides statistics on operations happening in a data stream.- Parameters:
fn- a function that initializes a builder to create theDataStreamsStatsRequest- Throws:
IOExceptionOpenSearchException
-
dataStreamsStats
Provides statistics on operations happening in a data stream.- Throws:
IOExceptionOpenSearchException
-
delete
public DeleteIndexResponse delete(DeleteIndexRequest request) throws IOException, OpenSearchException Deletes an index.- Throws:
IOExceptionOpenSearchException
-
delete
public final DeleteIndexResponse delete(Function<DeleteIndexRequest.Builder, ObjectBuilder<DeleteIndexRequest>> fn) throws IOException, OpenSearchExceptionDeletes an index.- Parameters:
fn- a function that initializes a builder to create theDeleteIndexRequest- Throws:
IOExceptionOpenSearchException
-
deleteAlias
public DeleteAliasResponse deleteAlias(DeleteAliasRequest request) throws IOException, OpenSearchException Deletes an alias.- Throws:
IOExceptionOpenSearchException
-
deleteAlias
public final DeleteAliasResponse deleteAlias(Function<DeleteAliasRequest.Builder, ObjectBuilder<DeleteAliasRequest>> fn) throws IOException, OpenSearchExceptionDeletes an alias.- Parameters:
fn- a function that initializes a builder to create theDeleteAliasRequest- Throws:
IOExceptionOpenSearchException
-
deleteDataStream
public DeleteDataStreamResponse deleteDataStream(DeleteDataStreamRequest request) throws IOException, OpenSearchException Deletes a data stream.- Throws:
IOExceptionOpenSearchException
-
deleteDataStream
public final DeleteDataStreamResponse deleteDataStream(Function<DeleteDataStreamRequest.Builder, ObjectBuilder<DeleteDataStreamRequest>> fn) throws IOException, OpenSearchExceptionDeletes a data stream.- Parameters:
fn- a function that initializes a builder to create theDeleteDataStreamRequest- Throws:
IOExceptionOpenSearchException
-
deleteIndexTemplate
public DeleteIndexTemplateResponse deleteIndexTemplate(DeleteIndexTemplateRequest request) throws IOException, OpenSearchException Deletes an index template.- Throws:
IOExceptionOpenSearchException
-
deleteIndexTemplate
public final DeleteIndexTemplateResponse deleteIndexTemplate(Function<DeleteIndexTemplateRequest.Builder, ObjectBuilder<DeleteIndexTemplateRequest>> fn) throws IOException, OpenSearchExceptionDeletes an index template.- Parameters:
fn- a function that initializes a builder to create theDeleteIndexTemplateRequest- Throws:
IOExceptionOpenSearchException
-
deleteTemplate
public DeleteTemplateResponse deleteTemplate(DeleteTemplateRequest request) throws IOException, OpenSearchException Deletes an index template.- Throws:
IOExceptionOpenSearchException
-
deleteTemplate
public final DeleteTemplateResponse deleteTemplate(Function<DeleteTemplateRequest.Builder, ObjectBuilder<DeleteTemplateRequest>> fn) throws IOException, OpenSearchExceptionDeletes an index template.- Parameters:
fn- a function that initializes a builder to create theDeleteTemplateRequest- Throws:
IOExceptionOpenSearchException
-
exists
Returns information about whether a particular index exists.- Throws:
IOExceptionOpenSearchException
-
exists
public final BooleanResponse exists(Function<ExistsRequest.Builder, ObjectBuilder<ExistsRequest>> fn) throws IOException, OpenSearchExceptionReturns information about whether a particular index exists.- Parameters:
fn- a function that initializes a builder to create theExistsRequest- Throws:
IOExceptionOpenSearchException
-
existsAlias
public BooleanResponse existsAlias(ExistsAliasRequest request) throws IOException, OpenSearchException Returns information about whether a particular alias exists.- Throws:
IOExceptionOpenSearchException
-
existsAlias
public final BooleanResponse existsAlias(Function<ExistsAliasRequest.Builder, ObjectBuilder<ExistsAliasRequest>> fn) throws IOException, OpenSearchExceptionReturns information about whether a particular alias exists.- Parameters:
fn- a function that initializes a builder to create theExistsAliasRequest- Throws:
IOExceptionOpenSearchException
-
existsIndexTemplate
public BooleanResponse existsIndexTemplate(ExistsIndexTemplateRequest request) throws IOException, OpenSearchException Returns information about whether a particular index template exists.- Throws:
IOExceptionOpenSearchException
-
existsIndexTemplate
public final BooleanResponse existsIndexTemplate(Function<ExistsIndexTemplateRequest.Builder, ObjectBuilder<ExistsIndexTemplateRequest>> fn) throws IOException, OpenSearchExceptionReturns information about whether a particular index template exists.- Parameters:
fn- a function that initializes a builder to create theExistsIndexTemplateRequest- Throws:
IOExceptionOpenSearchException
-
existsTemplate
public BooleanResponse existsTemplate(ExistsTemplateRequest request) throws IOException, OpenSearchException Returns information about whether a particular index template exists.- Throws:
IOExceptionOpenSearchException
-
existsTemplate
public final BooleanResponse existsTemplate(Function<ExistsTemplateRequest.Builder, ObjectBuilder<ExistsTemplateRequest>> fn) throws IOException, OpenSearchExceptionReturns information about whether a particular index template exists.- Parameters:
fn- a function that initializes a builder to create theExistsTemplateRequest- Throws:
IOExceptionOpenSearchException
-
flush
Performs the flush operation on one or more indexes.- Throws:
IOExceptionOpenSearchException
-
flush
public final FlushResponse flush(Function<FlushRequest.Builder, ObjectBuilder<FlushRequest>> fn) throws IOException, OpenSearchExceptionPerforms the flush operation on one or more indexes.- Parameters:
fn- a function that initializes a builder to create theFlushRequest- Throws:
IOExceptionOpenSearchException
-
flush
Performs the flush operation on one or more indexes.- Throws:
IOExceptionOpenSearchException
-
forcemerge
public ForcemergeResponse forcemerge(ForcemergeRequest request) throws IOException, OpenSearchException Performs the force merge operation on one or more indexes.- Throws:
IOExceptionOpenSearchException
-
forcemerge
public final ForcemergeResponse forcemerge(Function<ForcemergeRequest.Builder, ObjectBuilder<ForcemergeRequest>> fn) throws IOException, OpenSearchExceptionPerforms the force merge operation on one or more indexes.- Parameters:
fn- a function that initializes a builder to create theForcemergeRequest- Throws:
IOExceptionOpenSearchException
-
forcemerge
Performs the force merge operation on one or more indexes.- Throws:
IOExceptionOpenSearchException
-
get
Returns information about one or more indexes.- Throws:
IOExceptionOpenSearchException
-
get
public final GetIndexResponse get(Function<GetIndexRequest.Builder, ObjectBuilder<GetIndexRequest>> fn) throws IOException, OpenSearchExceptionReturns information about one or more indexes.- Parameters:
fn- a function that initializes a builder to create theGetIndexRequest- Throws:
IOExceptionOpenSearchException
-
getAlias
Returns an alias.- Throws:
IOExceptionOpenSearchException
-
getAlias
public final GetAliasResponse getAlias(Function<GetAliasRequest.Builder, ObjectBuilder<GetAliasRequest>> fn) throws IOException, OpenSearchExceptionReturns an alias.- Parameters:
fn- a function that initializes a builder to create theGetAliasRequest- Throws:
IOExceptionOpenSearchException
-
getAlias
Returns an alias.- Throws:
IOExceptionOpenSearchException
-
getDataStream
public GetDataStreamResponse getDataStream(GetDataStreamRequest request) throws IOException, OpenSearchException Returns data streams.- Throws:
IOExceptionOpenSearchException
-
getDataStream
public final GetDataStreamResponse getDataStream(Function<GetDataStreamRequest.Builder, ObjectBuilder<GetDataStreamRequest>> fn) throws IOException, OpenSearchExceptionReturns data streams.- Parameters:
fn- a function that initializes a builder to create theGetDataStreamRequest- Throws:
IOExceptionOpenSearchException
-
getDataStream
Returns data streams.- Throws:
IOExceptionOpenSearchException
-
getIndexTemplate
public GetIndexTemplateResponse getIndexTemplate(GetIndexTemplateRequest request) throws IOException, OpenSearchException Returns an index template.- Throws:
IOExceptionOpenSearchException
-
getIndexTemplate
public final GetIndexTemplateResponse getIndexTemplate(Function<GetIndexTemplateRequest.Builder, ObjectBuilder<GetIndexTemplateRequest>> fn) throws IOException, OpenSearchExceptionReturns an index template.- Parameters:
fn- a function that initializes a builder to create theGetIndexTemplateRequest- Throws:
IOExceptionOpenSearchException
-
getIndexTemplate
Returns an index template.- Throws:
IOExceptionOpenSearchException
-
getMapping
public GetMappingResponse getMapping(GetMappingRequest request) throws IOException, OpenSearchException Returns mappings for one or more indexes.- Throws:
IOExceptionOpenSearchException
-
getMapping
public final GetMappingResponse getMapping(Function<GetMappingRequest.Builder, ObjectBuilder<GetMappingRequest>> fn) throws IOException, OpenSearchExceptionReturns mappings for one or more indexes.- Parameters:
fn- a function that initializes a builder to create theGetMappingRequest- Throws:
IOExceptionOpenSearchException
-
getMapping
Returns mappings for one or more indexes.- Throws:
IOExceptionOpenSearchException
-
getSettings
public GetIndicesSettingsResponse getSettings(GetIndicesSettingsRequest request) throws IOException, OpenSearchException Returns settings for one or more indexes.- Throws:
IOExceptionOpenSearchException
-
getSettings
public final GetIndicesSettingsResponse getSettings(Function<GetIndicesSettingsRequest.Builder, ObjectBuilder<GetIndicesSettingsRequest>> fn) throws IOException, OpenSearchExceptionReturns settings for one or more indexes.- Parameters:
fn- a function that initializes a builder to create theGetIndicesSettingsRequest- Throws:
IOExceptionOpenSearchException
-
getSettings
Returns settings for one or more indexes.- Throws:
IOExceptionOpenSearchException
-
getTemplate
public GetTemplateResponse getTemplate(GetTemplateRequest request) throws IOException, OpenSearchException Returns an index template.- Throws:
IOExceptionOpenSearchException
-
getTemplate
public final GetTemplateResponse getTemplate(Function<GetTemplateRequest.Builder, ObjectBuilder<GetTemplateRequest>> fn) throws IOException, OpenSearchExceptionReturns an index template.- Parameters:
fn- a function that initializes a builder to create theGetTemplateRequest- Throws:
IOExceptionOpenSearchException
-
getTemplate
Returns an index template.- Throws:
IOExceptionOpenSearchException
-
open
Opens an index.- Throws:
IOExceptionOpenSearchException
-
open
public final OpenResponse open(Function<OpenRequest.Builder, ObjectBuilder<OpenRequest>> fn) throws IOException, OpenSearchExceptionOpens an index.- Parameters:
fn- a function that initializes a builder to create theOpenRequest- Throws:
IOExceptionOpenSearchException
-
putAlias
Creates or updates an alias.- Throws:
IOExceptionOpenSearchException
-
putAlias
public final PutAliasResponse putAlias(Function<PutAliasRequest.Builder, ObjectBuilder<PutAliasRequest>> fn) throws IOException, OpenSearchExceptionCreates or updates an alias.- Parameters:
fn- a function that initializes a builder to create thePutAliasRequest- Throws:
IOExceptionOpenSearchException
-
putAlias
Creates or updates an alias.- Throws:
IOExceptionOpenSearchException
-
putIndexTemplate
public PutIndexTemplateResponse putIndexTemplate(PutIndexTemplateRequest request) throws IOException, OpenSearchException Creates or updates an index template.- Throws:
IOExceptionOpenSearchException
-
putIndexTemplate
public final PutIndexTemplateResponse putIndexTemplate(Function<PutIndexTemplateRequest.Builder, ObjectBuilder<PutIndexTemplateRequest>> fn) throws IOException, OpenSearchExceptionCreates or updates an index template.- Parameters:
fn- a function that initializes a builder to create thePutIndexTemplateRequest- Throws:
IOExceptionOpenSearchException
-
putMapping
public PutMappingResponse putMapping(PutMappingRequest request) throws IOException, OpenSearchException Updates the index mappings.- Throws:
IOExceptionOpenSearchException
-
putMapping
public final PutMappingResponse putMapping(Function<PutMappingRequest.Builder, ObjectBuilder<PutMappingRequest>> fn) throws IOException, OpenSearchExceptionUpdates the index mappings.- Parameters:
fn- a function that initializes a builder to create thePutMappingRequest- Throws:
IOExceptionOpenSearchException
-
putSettings
public PutIndicesSettingsResponse putSettings(PutIndicesSettingsRequest request) throws IOException, OpenSearchException Updates the index settings.- Throws:
IOExceptionOpenSearchException
-
putSettings
public final PutIndicesSettingsResponse putSettings(Function<PutIndicesSettingsRequest.Builder, ObjectBuilder<PutIndicesSettingsRequest>> fn) throws IOException, OpenSearchExceptionUpdates the index settings.- Parameters:
fn- a function that initializes a builder to create thePutIndicesSettingsRequest- Throws:
IOExceptionOpenSearchException
-
putTemplate
public PutTemplateResponse putTemplate(PutTemplateRequest request) throws IOException, OpenSearchException Creates or updates an index template.- Throws:
IOExceptionOpenSearchException
-
putTemplate
public final PutTemplateResponse putTemplate(Function<PutTemplateRequest.Builder, ObjectBuilder<PutTemplateRequest>> fn) throws IOException, OpenSearchExceptionCreates or updates an index template.- Parameters:
fn- a function that initializes a builder to create thePutTemplateRequest- Throws:
IOExceptionOpenSearchException
-
recovery
Returns information about ongoing index shard recoveries.- Throws:
IOExceptionOpenSearchException
-
recovery
public final RecoveryResponse recovery(Function<RecoveryRequest.Builder, ObjectBuilder<RecoveryRequest>> fn) throws IOException, OpenSearchExceptionReturns information about ongoing index shard recoveries.- Parameters:
fn- a function that initializes a builder to create theRecoveryRequest- Throws:
IOExceptionOpenSearchException
-
recovery
Returns information about ongoing index shard recoveries.- Throws:
IOExceptionOpenSearchException
-
refresh
Performs the refresh operation in one or more indexes.- Throws:
IOExceptionOpenSearchException
-
refresh
public final RefreshResponse refresh(Function<RefreshRequest.Builder, ObjectBuilder<RefreshRequest>> fn) throws IOException, OpenSearchExceptionPerforms the refresh operation in one or more indexes.- Parameters:
fn- a function that initializes a builder to create theRefreshRequest- Throws:
IOExceptionOpenSearchException
-
refresh
Performs the refresh operation in one or more indexes.- Throws:
IOExceptionOpenSearchException
-
resolveIndex
public ResolveIndexResponse resolveIndex(ResolveIndexRequest request) throws IOException, OpenSearchException Returns information about any matching indexes, aliases, and data streams.- Throws:
IOExceptionOpenSearchException
-
resolveIndex
public final ResolveIndexResponse resolveIndex(Function<ResolveIndexRequest.Builder, ObjectBuilder<ResolveIndexRequest>> fn) throws IOException, OpenSearchExceptionReturns information about any matching indexes, aliases, and data streams.- Parameters:
fn- a function that initializes a builder to create theResolveIndexRequest- Throws:
IOExceptionOpenSearchException
-
rollover
Updates an alias to point to a new index when the existing index is considered to be too large or too old.- Throws:
IOExceptionOpenSearchException
-
rollover
public final RolloverResponse rollover(Function<RolloverRequest.Builder, ObjectBuilder<RolloverRequest>> fn) throws IOException, OpenSearchExceptionUpdates 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:
IOExceptionOpenSearchException
-
segments
Provides low-level information about segments in a Lucene index.- Throws:
IOExceptionOpenSearchException
-
segments
public final SegmentsResponse segments(Function<SegmentsRequest.Builder, ObjectBuilder<SegmentsRequest>> fn) throws IOException, OpenSearchExceptionProvides low-level information about segments in a Lucene index.- Parameters:
fn- a function that initializes a builder to create theSegmentsRequest- Throws:
IOExceptionOpenSearchException
-
segments
Provides low-level information about segments in a Lucene index.- Throws:
IOExceptionOpenSearchException
-
shardStores
public ShardStoresResponse shardStores(ShardStoresRequest request) throws IOException, OpenSearchException Provides store information for shard copies of indexes.- Throws:
IOExceptionOpenSearchException
-
shardStores
public final ShardStoresResponse shardStores(Function<ShardStoresRequest.Builder, ObjectBuilder<ShardStoresRequest>> fn) throws IOException, OpenSearchExceptionProvides store information for shard copies of indexes.- Parameters:
fn- a function that initializes a builder to create theShardStoresRequest- Throws:
IOExceptionOpenSearchException
-
shardStores
Provides store information for shard copies of indexes.- Throws:
IOExceptionOpenSearchException
-
shrink
Allow to shrink an existing index into a new index with fewer primary shards.- Throws:
IOExceptionOpenSearchException
-
shrink
public final ShrinkResponse shrink(Function<ShrinkRequest.Builder, ObjectBuilder<ShrinkRequest>> fn) throws IOException, OpenSearchExceptionAllow 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:
IOExceptionOpenSearchException
-
simulateIndexTemplate
public SimulateIndexTemplateResponse simulateIndexTemplate(SimulateIndexTemplateRequest request) throws IOException, OpenSearchException Simulate matching the given index name against the index templates in the system.- Throws:
IOExceptionOpenSearchException
-
simulateIndexTemplate
public final SimulateIndexTemplateResponse simulateIndexTemplate(Function<SimulateIndexTemplateRequest.Builder, ObjectBuilder<SimulateIndexTemplateRequest>> fn) throws IOException, OpenSearchExceptionSimulate matching the given index name against the index templates in the system.- Parameters:
fn- a function that initializes a builder to create theSimulateIndexTemplateRequest- Throws:
IOExceptionOpenSearchException
-
simulateTemplate
public SimulateTemplateResponse simulateTemplate(SimulateTemplateRequest request) throws IOException, OpenSearchException Simulate resolving the given template name or body.- Throws:
IOExceptionOpenSearchException
-
simulateTemplate
public final SimulateTemplateResponse simulateTemplate(Function<SimulateTemplateRequest.Builder, ObjectBuilder<SimulateTemplateRequest>> fn) throws IOException, OpenSearchExceptionSimulate resolving the given template name or body.- Parameters:
fn- a function that initializes a builder to create theSimulateTemplateRequest- Throws:
IOExceptionOpenSearchException
-
split
Allows you to split an existing index into a new index with more primary shards.- Throws:
IOExceptionOpenSearchException
-
split
public final SplitResponse split(Function<SplitRequest.Builder, ObjectBuilder<SplitRequest>> fn) throws IOException, OpenSearchExceptionAllows 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:
IOExceptionOpenSearchException
-
stats
public IndicesStatsResponse stats(IndicesStatsRequest request) throws IOException, OpenSearchException Provides statistics on operations happening in an index.- Throws:
IOExceptionOpenSearchException
-
stats
public final IndicesStatsResponse stats(Function<IndicesStatsRequest.Builder, ObjectBuilder<IndicesStatsRequest>> fn) throws IOException, OpenSearchExceptionProvides statistics on operations happening in an index.- Parameters:
fn- a function that initializes a builder to create theIndicesStatsRequest- Throws:
IOExceptionOpenSearchException
-
stats
Provides statistics on operations happening in an index.- Throws:
IOExceptionOpenSearchException
-
updateAliases
public UpdateAliasesResponse updateAliases(UpdateAliasesRequest request) throws IOException, OpenSearchException Updates index aliases.- Throws:
IOExceptionOpenSearchException
-
updateAliases
public final UpdateAliasesResponse updateAliases(Function<UpdateAliasesRequest.Builder, ObjectBuilder<UpdateAliasesRequest>> fn) throws IOException, OpenSearchExceptionUpdates index aliases.- Parameters:
fn- a function that initializes a builder to create theUpdateAliasesRequest- Throws:
IOExceptionOpenSearchException
-
updateAliases
Updates index aliases.- Throws:
IOExceptionOpenSearchException
-
validateQuery
public ValidateQueryResponse validateQuery(ValidateQueryRequest request) throws IOException, OpenSearchException Allows a user to validate a potentially expensive query without executing it.- Throws:
IOExceptionOpenSearchException
-
validateQuery
public final ValidateQueryResponse validateQuery(Function<ValidateQueryRequest.Builder, ObjectBuilder<ValidateQueryRequest>> fn) throws IOException, OpenSearchExceptionAllows a user to validate a potentially expensive query without executing it.- Parameters:
fn- a function that initializes a builder to create theValidateQueryRequest- Throws:
IOExceptionOpenSearchException
-
validateQuery
Allows a user to validate a potentially expensive query without executing it.- Throws:
IOExceptionOpenSearchException
-