Class ElasticsearchIndicesClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchIndicesClient>
co.elastic.clients.elasticsearch.indices.ElasticsearchIndicesClient
public class ElasticsearchIndicesClient extends ApiClient<ElasticsearchTransport,ElasticsearchIndicesClient>
Client for the indices namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions -
Constructor Summary
Constructors Constructor Description ElasticsearchIndicesClient(ElasticsearchTransport transport)ElasticsearchIndicesClient(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and Type Method Description AddBlockResponseaddBlock(AddBlockRequest request)Adds a block to an index.AddBlockResponseaddBlock(java.util.function.Function<AddBlockRequest.Builder,ObjectBuilder<AddBlockRequest>> fn)Adds a block to an index.AnalyzeResponseanalyze()Performs the analysis process on a text and return the tokens breakdown of the text.AnalyzeResponseanalyze(AnalyzeRequest request)Performs the analysis process on a text and return the tokens breakdown of the text.AnalyzeResponseanalyze(java.util.function.Function<AnalyzeRequest.Builder,ObjectBuilder<AnalyzeRequest>> fn)Performs the analysis process on a text and return the tokens breakdown of the text.ClearCacheResponseclearCache()Clears all or specific caches for one or more indices.ClearCacheResponseclearCache(ClearCacheRequest request)Clears all or specific caches for one or more indices.ClearCacheResponseclearCache(java.util.function.Function<ClearCacheRequest.Builder,ObjectBuilder<ClearCacheRequest>> fn)Clears all or specific caches for one or more indices.CloneIndexResponseclone(CloneIndexRequest request)Clones an indexCloneIndexResponseclone(java.util.function.Function<CloneIndexRequest.Builder,ObjectBuilder<CloneIndexRequest>> fn)Clones an indexCloseIndexResponseclose(CloseIndexRequest request)Closes an index.CloseIndexResponseclose(java.util.function.Function<CloseIndexRequest.Builder,ObjectBuilder<CloseIndexRequest>> fn)Closes an index.CreateIndexResponsecreate(CreateIndexRequest request)Creates an index with optional settings and mappings.CreateIndexResponsecreate(java.util.function.Function<CreateIndexRequest.Builder,ObjectBuilder<CreateIndexRequest>> fn)Creates an index with optional settings and mappings.CreateDataStreamResponsecreateDataStream(CreateDataStreamRequest request)Creates a data streamCreateDataStreamResponsecreateDataStream(java.util.function.Function<CreateDataStreamRequest.Builder,ObjectBuilder<CreateDataStreamRequest>> fn)Creates a data streamDataStreamsStatsResponsedataStreamsStats()Provides statistics on operations happening in a data stream.DataStreamsStatsResponsedataStreamsStats(DataStreamsStatsRequest request)Provides statistics on operations happening in a data stream.DataStreamsStatsResponsedataStreamsStats(java.util.function.Function<DataStreamsStatsRequest.Builder,ObjectBuilder<DataStreamsStatsRequest>> fn)Provides statistics on operations happening in a data stream.DeleteIndexResponsedelete(DeleteIndexRequest request)Deletes an index.DeleteIndexResponsedelete(java.util.function.Function<DeleteIndexRequest.Builder,ObjectBuilder<DeleteIndexRequest>> fn)Deletes an index.DeleteAliasResponsedeleteAlias(DeleteAliasRequest request)Deletes an alias.DeleteAliasResponsedeleteAlias(java.util.function.Function<DeleteAliasRequest.Builder,ObjectBuilder<DeleteAliasRequest>> fn)Deletes an alias.DeleteDataStreamResponsedeleteDataStream(DeleteDataStreamRequest request)Deletes a data stream.DeleteDataStreamResponsedeleteDataStream(java.util.function.Function<DeleteDataStreamRequest.Builder,ObjectBuilder<DeleteDataStreamRequest>> fn)Deletes a data stream.DeleteIndexTemplateResponsedeleteIndexTemplate(DeleteIndexTemplateRequest request)Deletes an index template.DeleteIndexTemplateResponsedeleteIndexTemplate(java.util.function.Function<DeleteIndexTemplateRequest.Builder,ObjectBuilder<DeleteIndexTemplateRequest>> fn)Deletes an index template.DeleteTemplateResponsedeleteTemplate(DeleteTemplateRequest request)Deletes an index template.DeleteTemplateResponsedeleteTemplate(java.util.function.Function<DeleteTemplateRequest.Builder,ObjectBuilder<DeleteTemplateRequest>> fn)Deletes an index template.DiskUsageResponsediskUsage(DiskUsageRequest request)Analyzes the disk usage of each field of an index or data streamDiskUsageResponsediskUsage(java.util.function.Function<DiskUsageRequest.Builder,ObjectBuilder<DiskUsageRequest>> fn)Analyzes the disk usage of each field of an index or data streamBooleanResponseexists(ExistsRequest request)Returns information about whether a particular index exists.BooleanResponseexists(java.util.function.Function<ExistsRequest.Builder,ObjectBuilder<ExistsRequest>> fn)Returns information about whether a particular index exists.BooleanResponseexistsAlias(ExistsAliasRequest request)Returns information about whether a particular alias exists.BooleanResponseexistsAlias(java.util.function.Function<ExistsAliasRequest.Builder,ObjectBuilder<ExistsAliasRequest>> fn)Returns information about whether a particular alias exists.BooleanResponseexistsIndexTemplate(ExistsIndexTemplateRequest request)Returns information about whether a particular index template exists.BooleanResponseexistsIndexTemplate(java.util.function.Function<ExistsIndexTemplateRequest.Builder,ObjectBuilder<ExistsIndexTemplateRequest>> fn)Returns information about whether a particular index template exists.BooleanResponseexistsTemplate(ExistsTemplateRequest request)Returns information about whether a particular index template exists.BooleanResponseexistsTemplate(java.util.function.Function<ExistsTemplateRequest.Builder,ObjectBuilder<ExistsTemplateRequest>> fn)Returns information about whether a particular index template exists.BooleanResponseexistsType(ExistsTypeRequest request)Returns information about whether a particular document type exists.BooleanResponseexistsType(java.util.function.Function<ExistsTypeRequest.Builder,ObjectBuilder<ExistsTypeRequest>> fn)Returns information about whether a particular document type exists.FlushResponseflush()Performs the flush operation on one or more indices.FlushResponseflush(FlushRequest request)Performs the flush operation on one or more indices.FlushResponseflush(java.util.function.Function<FlushRequest.Builder,ObjectBuilder<FlushRequest>> fn)Performs the flush operation on one or more indices.FlushSyncedResponseflushSynced()Performs a synced flush operation on one or more indices.FlushSyncedResponseflushSynced(FlushSyncedRequest request)Performs a synced flush operation on one or more indices.FlushSyncedResponseflushSynced(java.util.function.Function<FlushSyncedRequest.Builder,ObjectBuilder<FlushSyncedRequest>> fn)Performs a synced flush operation on one or more indices.ForcemergeResponseforcemerge()Performs the force merge operation on one or more indices.ForcemergeResponseforcemerge(ForcemergeRequest request)Performs the force merge operation on one or more indices.ForcemergeResponseforcemerge(java.util.function.Function<ForcemergeRequest.Builder,ObjectBuilder<ForcemergeRequest>> fn)Performs the force merge operation on one or more indices.FreezeResponsefreeze(FreezeRequest request)Freezes an index.FreezeResponsefreeze(java.util.function.Function<FreezeRequest.Builder,ObjectBuilder<FreezeRequest>> fn)Freezes an index.GetIndexResponseget(GetIndexRequest request)Returns information about one or more indices.GetIndexResponseget(java.util.function.Function<GetIndexRequest.Builder,ObjectBuilder<GetIndexRequest>> fn)Returns information about one or more indices.GetAliasResponsegetAlias()Returns an alias.GetAliasResponsegetAlias(GetAliasRequest request)Returns an alias.GetAliasResponsegetAlias(java.util.function.Function<GetAliasRequest.Builder,ObjectBuilder<GetAliasRequest>> fn)Returns an alias.GetDataStreamResponsegetDataStream()Returns data streams.GetDataStreamResponsegetDataStream(GetDataStreamRequest request)Returns data streams.GetDataStreamResponsegetDataStream(java.util.function.Function<GetDataStreamRequest.Builder,ObjectBuilder<GetDataStreamRequest>> fn)Returns data streams.GetFieldMappingResponsegetFieldMapping(GetFieldMappingRequest request)Returns mapping for one or more fields.GetFieldMappingResponsegetFieldMapping(java.util.function.Function<GetFieldMappingRequest.Builder,ObjectBuilder<GetFieldMappingRequest>> fn)Returns mapping for one or more fields.GetIndexTemplateResponsegetIndexTemplate()Returns an index template.GetIndexTemplateResponsegetIndexTemplate(GetIndexTemplateRequest request)Returns an index template.GetIndexTemplateResponsegetIndexTemplate(java.util.function.Function<GetIndexTemplateRequest.Builder,ObjectBuilder<GetIndexTemplateRequest>> fn)Returns an index template.GetMappingResponsegetMapping()Returns mappings for one or more indices.GetMappingResponsegetMapping(GetMappingRequest request)Returns mappings for one or more indices.GetMappingResponsegetMapping(java.util.function.Function<GetMappingRequest.Builder,ObjectBuilder<GetMappingRequest>> fn)Returns mappings for one or more indices.GetIndicesSettingsResponsegetSettings()Returns settings for one or more indices.GetIndicesSettingsResponsegetSettings(GetIndicesSettingsRequest request)Returns settings for one or more indices.GetIndicesSettingsResponsegetSettings(java.util.function.Function<GetIndicesSettingsRequest.Builder,ObjectBuilder<GetIndicesSettingsRequest>> fn)Returns settings for one or more indices.GetTemplateResponsegetTemplate()Returns an index template.GetTemplateResponsegetTemplate(GetTemplateRequest request)Returns an index template.GetTemplateResponsegetTemplate(java.util.function.Function<GetTemplateRequest.Builder,ObjectBuilder<GetTemplateRequest>> fn)Returns an index template.GetUpgradeResponsegetUpgrade()DEPRECATED Returns a progress status of current upgrade.GetUpgradeResponsegetUpgrade(GetUpgradeRequest request)DEPRECATED Returns a progress status of current upgrade.GetUpgradeResponsegetUpgrade(java.util.function.Function<GetUpgradeRequest.Builder,ObjectBuilder<GetUpgradeRequest>> fn)DEPRECATED Returns a progress status of current upgrade.MigrateToDataStreamResponsemigrateToDataStream(MigrateToDataStreamRequest request)Migrates an alias to a data streamMigrateToDataStreamResponsemigrateToDataStream(java.util.function.Function<MigrateToDataStreamRequest.Builder,ObjectBuilder<MigrateToDataStreamRequest>> fn)Migrates an alias to a data streamOpenResponseopen(OpenRequest request)Opens an index.OpenResponseopen(java.util.function.Function<OpenRequest.Builder,ObjectBuilder<OpenRequest>> fn)Opens an index.PromoteDataStreamResponsepromoteDataStream(PromoteDataStreamRequest request)Promotes a data stream from a replicated data stream managed by CCR to a regular data streamPromoteDataStreamResponsepromoteDataStream(java.util.function.Function<PromoteDataStreamRequest.Builder,ObjectBuilder<PromoteDataStreamRequest>> fn)Promotes a data stream from a replicated data stream managed by CCR to a regular data streamPutAliasResponseputAlias(PutAliasRequest request)Creates or updates an alias.PutAliasResponseputAlias(java.util.function.Function<PutAliasRequest.Builder,ObjectBuilder<PutAliasRequest>> fn)Creates or updates an alias.PutIndexTemplateResponseputIndexTemplate(PutIndexTemplateRequest request)Creates or updates an index template.PutIndexTemplateResponseputIndexTemplate(java.util.function.Function<PutIndexTemplateRequest.Builder,ObjectBuilder<PutIndexTemplateRequest>> fn)Creates or updates an index template.PutMappingResponseputMapping(PutMappingRequest request)Updates the index mappings.PutMappingResponseputMapping(java.util.function.Function<PutMappingRequest.Builder,ObjectBuilder<PutMappingRequest>> fn)Updates the index mappings.PutIndicesSettingsResponseputSettings()Updates the index settings.PutIndicesSettingsResponseputSettings(PutIndicesSettingsRequest request)Updates the index settings.PutIndicesSettingsResponseputSettings(java.util.function.Function<PutIndicesSettingsRequest.Builder,ObjectBuilder<PutIndicesSettingsRequest>> fn)Updates the index settings.PutTemplateResponseputTemplate(PutTemplateRequest request)Creates or updates an index template.PutTemplateResponseputTemplate(java.util.function.Function<PutTemplateRequest.Builder,ObjectBuilder<PutTemplateRequest>> fn)Creates or updates an index template.RecoveryResponserecovery()Returns information about ongoing index shard recoveries.RecoveryResponserecovery(RecoveryRequest request)Returns information about ongoing index shard recoveries.RecoveryResponserecovery(java.util.function.Function<RecoveryRequest.Builder,ObjectBuilder<RecoveryRequest>> fn)Returns information about ongoing index shard recoveries.RefreshResponserefresh()Performs the refresh operation in one or more indices.RefreshResponserefresh(RefreshRequest request)Performs the refresh operation in one or more indices.RefreshResponserefresh(java.util.function.Function<RefreshRequest.Builder,ObjectBuilder<RefreshRequest>> fn)Performs the refresh operation in one or more indices.ReloadSearchAnalyzersResponsereloadSearchAnalyzers(ReloadSearchAnalyzersRequest request)Reloads an index's search analyzers and their resources.ReloadSearchAnalyzersResponsereloadSearchAnalyzers(java.util.function.Function<ReloadSearchAnalyzersRequest.Builder,ObjectBuilder<ReloadSearchAnalyzersRequest>> fn)Reloads an index's search analyzers and their resources.ResolveIndexResponseresolveIndex(ResolveIndexRequest request)Returns information about any matching indices, aliases, and data streamsResolveIndexResponseresolveIndex(java.util.function.Function<ResolveIndexRequest.Builder,ObjectBuilder<ResolveIndexRequest>> fn)Returns information about any matching indices, aliases, and data streamsRolloverResponserollover(RolloverRequest request)Updates an alias to point to a new index when the existing index is considered to be too large or too old.RolloverResponserollover(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.SegmentsResponsesegments()Provides low-level information about segments in a Lucene index.SegmentsResponsesegments(SegmentsRequest request)Provides low-level information about segments in a Lucene index.SegmentsResponsesegments(java.util.function.Function<SegmentsRequest.Builder,ObjectBuilder<SegmentsRequest>> fn)Provides low-level information about segments in a Lucene index.ShardStoresResponseshardStores()Provides store information for shard copies of indices.ShardStoresResponseshardStores(ShardStoresRequest request)Provides store information for shard copies of indices.ShardStoresResponseshardStores(java.util.function.Function<ShardStoresRequest.Builder,ObjectBuilder<ShardStoresRequest>> fn)Provides store information for shard copies of indices.ShrinkResponseshrink(ShrinkRequest request)Allow to shrink an existing index into a new index with fewer primary shards.ShrinkResponseshrink(java.util.function.Function<ShrinkRequest.Builder,ObjectBuilder<ShrinkRequest>> fn)Allow to shrink an existing index into a new index with fewer primary shards.SimulateIndexTemplateResponsesimulateIndexTemplate(SimulateIndexTemplateRequest request)Simulate matching the given index name against the index templates in the systemSimulateIndexTemplateResponsesimulateIndexTemplate(java.util.function.Function<SimulateIndexTemplateRequest.Builder,ObjectBuilder<SimulateIndexTemplateRequest>> fn)Simulate matching the given index name against the index templates in the systemSimulateTemplateResponsesimulateTemplate()Simulate resolving the given template name or bodySimulateTemplateResponsesimulateTemplate(SimulateTemplateRequest request)Simulate resolving the given template name or bodySimulateTemplateResponsesimulateTemplate(java.util.function.Function<SimulateTemplateRequest.Builder,ObjectBuilder<SimulateTemplateRequest>> fn)Simulate resolving the given template name or bodySplitResponsesplit(SplitRequest request)Allows you to split an existing index into a new index with more primary shards.SplitResponsesplit(java.util.function.Function<SplitRequest.Builder,ObjectBuilder<SplitRequest>> fn)Allows you to split an existing index into a new index with more primary shards.IndicesStatsResponsestats()Provides statistics on operations happening in an index.IndicesStatsResponsestats(IndicesStatsRequest request)Provides statistics on operations happening in an index.IndicesStatsResponsestats(java.util.function.Function<IndicesStatsRequest.Builder,ObjectBuilder<IndicesStatsRequest>> fn)Provides statistics on operations happening in an index.UnfreezeResponseunfreeze(UnfreezeRequest request)Unfreezes an index.UnfreezeResponseunfreeze(java.util.function.Function<UnfreezeRequest.Builder,ObjectBuilder<UnfreezeRequest>> fn)Unfreezes an index.UpdateAliasesResponseupdateAliases()Updates index aliases.UpdateAliasesResponseupdateAliases(UpdateAliasesRequest request)Updates index aliases.UpdateAliasesResponseupdateAliases(java.util.function.Function<UpdateAliasesRequest.Builder,ObjectBuilder<UpdateAliasesRequest>> fn)Updates index aliases.UpgradeResponseupgrade()DEPRECATED Upgrades to the current version of Lucene.UpgradeResponseupgrade(UpgradeRequest request)DEPRECATED Upgrades to the current version of Lucene.UpgradeResponseupgrade(java.util.function.Function<UpgradeRequest.Builder,ObjectBuilder<UpgradeRequest>> fn)DEPRECATED Upgrades to the current version of Lucene.ValidateQueryResponsevalidateQuery()Allows a user to validate a potentially expensive query without executing it.ValidateQueryResponsevalidateQuery(ValidateQueryRequest request)Allows a user to validate a potentially expensive query without executing it.ValidateQueryResponsevalidateQuery(java.util.function.Function<ValidateQueryRequest.Builder,ObjectBuilder<ValidateQueryRequest>> fn)Allows a user to validate a potentially expensive query without executing it.ElasticsearchIndicesClientwithTransportOptions(TransportOptions transportOptions)Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ElasticsearchIndicesClient
-
ElasticsearchIndicesClient
public ElasticsearchIndicesClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchIndicesClient withTransportOptions(@Nullable TransportOptions transportOptions)Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchIndicesClient>
-
addBlock
public AddBlockResponse addBlock(AddBlockRequest request) throws java.io.IOException, ElasticsearchExceptionAdds a block to an index.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
addBlock
public final AddBlockResponse addBlock(java.util.function.Function<AddBlockRequest.Builder,ObjectBuilder<AddBlockRequest>> fn) throws java.io.IOException, ElasticsearchExceptionAdds a block to an index.- Parameters:
fn- a function that initializes a builder to create theAddBlockRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
analyze
public AnalyzeResponse analyze(AnalyzeRequest request) throws java.io.IOException, ElasticsearchExceptionPerforms the analysis process on a text and return the tokens breakdown of the text.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
analyze
public final AnalyzeResponse analyze(java.util.function.Function<AnalyzeRequest.Builder,ObjectBuilder<AnalyzeRequest>> fn) throws java.io.IOException, ElasticsearchExceptionPerforms 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
analyze
Performs the analysis process on a text and return the tokens breakdown of the text.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
clearCache
public ClearCacheResponse clearCache(ClearCacheRequest request) throws java.io.IOException, ElasticsearchExceptionClears all or specific caches for one or more indices.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
clearCache
public final ClearCacheResponse clearCache(java.util.function.Function<ClearCacheRequest.Builder,ObjectBuilder<ClearCacheRequest>> fn) throws java.io.IOException, ElasticsearchExceptionClears all or specific caches for one or more indices.- Parameters:
fn- a function that initializes a builder to create theClearCacheRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
clearCache
Clears all or specific caches for one or more indices.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
clone
public CloneIndexResponse clone(CloneIndexRequest request) throws java.io.IOException, ElasticsearchExceptionClones an index- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
clone
public final CloneIndexResponse clone(java.util.function.Function<CloneIndexRequest.Builder,ObjectBuilder<CloneIndexRequest>> fn) throws java.io.IOException, ElasticsearchExceptionClones an index- Parameters:
fn- a function that initializes a builder to create theCloneIndexRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
close
public CloseIndexResponse close(CloseIndexRequest request) throws java.io.IOException, ElasticsearchExceptionCloses an index.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
close
public final CloseIndexResponse close(java.util.function.Function<CloseIndexRequest.Builder,ObjectBuilder<CloseIndexRequest>> fn) throws java.io.IOException, ElasticsearchExceptionCloses an index.- Parameters:
fn- a function that initializes a builder to create theCloseIndexRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
create
public CreateIndexResponse create(CreateIndexRequest request) throws java.io.IOException, ElasticsearchExceptionCreates an index with optional settings and mappings.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
create
public final CreateIndexResponse create(java.util.function.Function<CreateIndexRequest.Builder,ObjectBuilder<CreateIndexRequest>> fn) throws java.io.IOException, ElasticsearchExceptionCreates an index with optional settings and mappings.- Parameters:
fn- a function that initializes a builder to create theCreateIndexRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
createDataStream
public CreateDataStreamResponse createDataStream(CreateDataStreamRequest request) throws java.io.IOException, ElasticsearchExceptionCreates a data stream- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
createDataStream
public final CreateDataStreamResponse createDataStream(java.util.function.Function<CreateDataStreamRequest.Builder,ObjectBuilder<CreateDataStreamRequest>> fn) throws java.io.IOException, ElasticsearchExceptionCreates a data stream- Parameters:
fn- a function that initializes a builder to create theCreateDataStreamRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
dataStreamsStats
public DataStreamsStatsResponse dataStreamsStats(DataStreamsStatsRequest request) throws java.io.IOException, ElasticsearchExceptionProvides statistics on operations happening in a data stream.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
dataStreamsStats
public final DataStreamsStatsResponse dataStreamsStats(java.util.function.Function<DataStreamsStatsRequest.Builder,ObjectBuilder<DataStreamsStatsRequest>> fn) throws java.io.IOException, ElasticsearchExceptionProvides statistics on operations happening in a data stream.- Parameters:
fn- a function that initializes a builder to create theDataStreamsStatsRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
dataStreamsStats
public DataStreamsStatsResponse dataStreamsStats() throws java.io.IOException, ElasticsearchExceptionProvides statistics on operations happening in a data stream.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
delete
public DeleteIndexResponse delete(DeleteIndexRequest request) throws java.io.IOException, ElasticsearchExceptionDeletes an index.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
delete
public final DeleteIndexResponse delete(java.util.function.Function<DeleteIndexRequest.Builder,ObjectBuilder<DeleteIndexRequest>> fn) throws java.io.IOException, ElasticsearchExceptionDeletes an index.- Parameters:
fn- a function that initializes a builder to create theDeleteIndexRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
deleteAlias
public DeleteAliasResponse deleteAlias(DeleteAliasRequest request) throws java.io.IOException, ElasticsearchExceptionDeletes an alias.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
deleteAlias
public final DeleteAliasResponse deleteAlias(java.util.function.Function<DeleteAliasRequest.Builder,ObjectBuilder<DeleteAliasRequest>> fn) throws java.io.IOException, ElasticsearchExceptionDeletes an alias.- Parameters:
fn- a function that initializes a builder to create theDeleteAliasRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
deleteDataStream
public DeleteDataStreamResponse deleteDataStream(DeleteDataStreamRequest request) throws java.io.IOException, ElasticsearchExceptionDeletes a data stream.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
deleteDataStream
public final DeleteDataStreamResponse deleteDataStream(java.util.function.Function<DeleteDataStreamRequest.Builder,ObjectBuilder<DeleteDataStreamRequest>> fn) throws java.io.IOException, ElasticsearchExceptionDeletes a data stream.- Parameters:
fn- a function that initializes a builder to create theDeleteDataStreamRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
deleteIndexTemplate
public DeleteIndexTemplateResponse deleteIndexTemplate(DeleteIndexTemplateRequest request) throws java.io.IOException, ElasticsearchExceptionDeletes an index template.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
deleteIndexTemplate
public final DeleteIndexTemplateResponse deleteIndexTemplate(java.util.function.Function<DeleteIndexTemplateRequest.Builder,ObjectBuilder<DeleteIndexTemplateRequest>> fn) throws java.io.IOException, ElasticsearchExceptionDeletes an index template.- Parameters:
fn- a function that initializes a builder to create theDeleteIndexTemplateRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
deleteTemplate
public DeleteTemplateResponse deleteTemplate(DeleteTemplateRequest request) throws java.io.IOException, ElasticsearchExceptionDeletes an index template.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
deleteTemplate
public final DeleteTemplateResponse deleteTemplate(java.util.function.Function<DeleteTemplateRequest.Builder,ObjectBuilder<DeleteTemplateRequest>> fn) throws java.io.IOException, ElasticsearchExceptionDeletes an index template.- Parameters:
fn- a function that initializes a builder to create theDeleteTemplateRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
diskUsage
public DiskUsageResponse diskUsage(DiskUsageRequest request) throws java.io.IOException, ElasticsearchExceptionAnalyzes the disk usage of each field of an index or data stream- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
diskUsage
public final DiskUsageResponse diskUsage(java.util.function.Function<DiskUsageRequest.Builder,ObjectBuilder<DiskUsageRequest>> fn) throws java.io.IOException, ElasticsearchExceptionAnalyzes 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
exists
public BooleanResponse exists(ExistsRequest request) throws java.io.IOException, ElasticsearchExceptionReturns information about whether a particular index exists.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
exists
public final BooleanResponse exists(java.util.function.Function<ExistsRequest.Builder,ObjectBuilder<ExistsRequest>> fn) throws java.io.IOException, ElasticsearchExceptionReturns information about whether a particular index exists.- Parameters:
fn- a function that initializes a builder to create theExistsRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
existsAlias
public BooleanResponse existsAlias(ExistsAliasRequest request) throws java.io.IOException, ElasticsearchExceptionReturns information about whether a particular alias exists.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
existsAlias
public final BooleanResponse existsAlias(java.util.function.Function<ExistsAliasRequest.Builder,ObjectBuilder<ExistsAliasRequest>> fn) throws java.io.IOException, ElasticsearchExceptionReturns information about whether a particular alias exists.- Parameters:
fn- a function that initializes a builder to create theExistsAliasRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
existsIndexTemplate
public BooleanResponse existsIndexTemplate(ExistsIndexTemplateRequest request) throws java.io.IOException, ElasticsearchExceptionReturns information about whether a particular index template exists.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
existsIndexTemplate
public final BooleanResponse existsIndexTemplate(java.util.function.Function<ExistsIndexTemplateRequest.Builder,ObjectBuilder<ExistsIndexTemplateRequest>> fn) throws java.io.IOException, ElasticsearchExceptionReturns information about whether a particular index template exists.- Parameters:
fn- a function that initializes a builder to create theExistsIndexTemplateRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
existsTemplate
public BooleanResponse existsTemplate(ExistsTemplateRequest request) throws java.io.IOException, ElasticsearchExceptionReturns information about whether a particular index template exists.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
existsTemplate
public final BooleanResponse existsTemplate(java.util.function.Function<ExistsTemplateRequest.Builder,ObjectBuilder<ExistsTemplateRequest>> fn) throws java.io.IOException, ElasticsearchExceptionReturns information about whether a particular index template exists.- Parameters:
fn- a function that initializes a builder to create theExistsTemplateRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
existsType
public BooleanResponse existsType(ExistsTypeRequest request) throws java.io.IOException, ElasticsearchExceptionReturns information about whether a particular document type exists. (DEPRECATED)- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
existsType
public final BooleanResponse existsType(java.util.function.Function<ExistsTypeRequest.Builder,ObjectBuilder<ExistsTypeRequest>> fn) throws java.io.IOException, ElasticsearchExceptionReturns information about whether a particular document type exists. (DEPRECATED)- Parameters:
fn- a function that initializes a builder to create theExistsTypeRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
flush
public FlushResponse flush(FlushRequest request) throws java.io.IOException, ElasticsearchExceptionPerforms the flush operation on one or more indices.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
flush
public final FlushResponse flush(java.util.function.Function<FlushRequest.Builder,ObjectBuilder<FlushRequest>> fn) throws java.io.IOException, ElasticsearchExceptionPerforms the flush operation on one or more indices.- Parameters:
fn- a function that initializes a builder to create theFlushRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
flush
Performs the flush operation on one or more indices.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
flushSynced
public FlushSyncedResponse flushSynced(FlushSyncedRequest request) throws java.io.IOException, ElasticsearchExceptionPerforms a synced flush operation on one or more indices. Synced flush is deprecated and will be removed in 8.0. Use flush instead- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
flushSynced
public final FlushSyncedResponse flushSynced(java.util.function.Function<FlushSyncedRequest.Builder,ObjectBuilder<FlushSyncedRequest>> fn) throws java.io.IOException, ElasticsearchExceptionPerforms a synced flush operation on one or more indices. Synced flush is deprecated and will be removed in 8.0. Use flush instead- Parameters:
fn- a function that initializes a builder to create theFlushSyncedRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
flushSynced
Performs a synced flush operation on one or more indices. Synced flush is deprecated and will be removed in 8.0. Use flush instead- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
forcemerge
public ForcemergeResponse forcemerge(ForcemergeRequest request) throws java.io.IOException, ElasticsearchExceptionPerforms the force merge operation on one or more indices.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
forcemerge
public final ForcemergeResponse forcemerge(java.util.function.Function<ForcemergeRequest.Builder,ObjectBuilder<ForcemergeRequest>> fn) throws java.io.IOException, ElasticsearchExceptionPerforms the force merge operation on one or more indices.- Parameters:
fn- a function that initializes a builder to create theForcemergeRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
forcemerge
Performs the force merge operation on one or more indices.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
freeze
public FreezeResponse freeze(FreezeRequest request) throws java.io.IOException, ElasticsearchExceptionFreezes an index. A frozen index has almost no overhead on the cluster (except for maintaining its metadata in memory) and is read-only.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
freeze
public final FreezeResponse freeze(java.util.function.Function<FreezeRequest.Builder,ObjectBuilder<FreezeRequest>> fn) throws java.io.IOException, ElasticsearchExceptionFreezes an index. A frozen index has almost no overhead on the cluster (except for maintaining its metadata in memory) and is read-only.- Parameters:
fn- a function that initializes a builder to create theFreezeRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
get
public GetIndexResponse get(GetIndexRequest request) throws java.io.IOException, ElasticsearchExceptionReturns information about one or more indices.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
get
public final GetIndexResponse get(java.util.function.Function<GetIndexRequest.Builder,ObjectBuilder<GetIndexRequest>> fn) throws java.io.IOException, ElasticsearchExceptionReturns information about one or more indices.- Parameters:
fn- a function that initializes a builder to create theGetIndexRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getAlias
public GetAliasResponse getAlias(GetAliasRequest request) throws java.io.IOException, ElasticsearchExceptionReturns an alias.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getAlias
public final GetAliasResponse getAlias(java.util.function.Function<GetAliasRequest.Builder,ObjectBuilder<GetAliasRequest>> fn) throws java.io.IOException, ElasticsearchExceptionReturns an alias.- Parameters:
fn- a function that initializes a builder to create theGetAliasRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getAlias
Returns an alias.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getDataStream
public GetDataStreamResponse getDataStream(GetDataStreamRequest request) throws java.io.IOException, ElasticsearchExceptionReturns data streams.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getDataStream
public final GetDataStreamResponse getDataStream(java.util.function.Function<GetDataStreamRequest.Builder,ObjectBuilder<GetDataStreamRequest>> fn) throws java.io.IOException, ElasticsearchExceptionReturns data streams.- Parameters:
fn- a function that initializes a builder to create theGetDataStreamRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getDataStream
Returns data streams.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getFieldMapping
public GetFieldMappingResponse getFieldMapping(GetFieldMappingRequest request) throws java.io.IOException, ElasticsearchExceptionReturns mapping for one or more fields.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getFieldMapping
public final GetFieldMappingResponse getFieldMapping(java.util.function.Function<GetFieldMappingRequest.Builder,ObjectBuilder<GetFieldMappingRequest>> fn) throws java.io.IOException, ElasticsearchExceptionReturns mapping for one or more fields.- Parameters:
fn- a function that initializes a builder to create theGetFieldMappingRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getIndexTemplate
public GetIndexTemplateResponse getIndexTemplate(GetIndexTemplateRequest request) throws java.io.IOException, ElasticsearchExceptionReturns an index template.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getIndexTemplate
public final GetIndexTemplateResponse getIndexTemplate(java.util.function.Function<GetIndexTemplateRequest.Builder,ObjectBuilder<GetIndexTemplateRequest>> fn) throws java.io.IOException, ElasticsearchExceptionReturns an index template.- Parameters:
fn- a function that initializes a builder to create theGetIndexTemplateRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getIndexTemplate
public GetIndexTemplateResponse getIndexTemplate() throws java.io.IOException, ElasticsearchExceptionReturns an index template.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getMapping
public GetMappingResponse getMapping(GetMappingRequest request) throws java.io.IOException, ElasticsearchExceptionReturns mappings for one or more indices.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getMapping
public final GetMappingResponse getMapping(java.util.function.Function<GetMappingRequest.Builder,ObjectBuilder<GetMappingRequest>> fn) throws java.io.IOException, ElasticsearchExceptionReturns mappings for one or more indices.- Parameters:
fn- a function that initializes a builder to create theGetMappingRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getMapping
Returns mappings for one or more indices.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getSettings
public GetIndicesSettingsResponse getSettings(GetIndicesSettingsRequest request) throws java.io.IOException, ElasticsearchExceptionReturns settings for one or more indices.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getSettings
public final GetIndicesSettingsResponse getSettings(java.util.function.Function<GetIndicesSettingsRequest.Builder,ObjectBuilder<GetIndicesSettingsRequest>> fn) throws java.io.IOException, ElasticsearchExceptionReturns settings for one or more indices.- Parameters:
fn- a function that initializes a builder to create theGetIndicesSettingsRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getSettings
Returns settings for one or more indices.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getTemplate
public GetTemplateResponse getTemplate(GetTemplateRequest request) throws java.io.IOException, ElasticsearchExceptionReturns an index template.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getTemplate
public final GetTemplateResponse getTemplate(java.util.function.Function<GetTemplateRequest.Builder,ObjectBuilder<GetTemplateRequest>> fn) throws java.io.IOException, ElasticsearchExceptionReturns an index template.- Parameters:
fn- a function that initializes a builder to create theGetTemplateRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getTemplate
Returns an index template.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getUpgrade
public GetUpgradeResponse getUpgrade(GetUpgradeRequest request) throws java.io.IOException, ElasticsearchExceptionDEPRECATED Returns a progress status of current upgrade.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getUpgrade
public final GetUpgradeResponse getUpgrade(java.util.function.Function<GetUpgradeRequest.Builder,ObjectBuilder<GetUpgradeRequest>> fn) throws java.io.IOException, ElasticsearchExceptionDEPRECATED Returns a progress status of current upgrade.- Parameters:
fn- a function that initializes a builder to create theGetUpgradeRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
getUpgrade
DEPRECATED Returns a progress status of current upgrade.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
migrateToDataStream
public MigrateToDataStreamResponse migrateToDataStream(MigrateToDataStreamRequest request) throws java.io.IOException, ElasticsearchExceptionMigrates an alias to a data stream- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
migrateToDataStream
public final MigrateToDataStreamResponse migrateToDataStream(java.util.function.Function<MigrateToDataStreamRequest.Builder,ObjectBuilder<MigrateToDataStreamRequest>> fn) throws java.io.IOException, ElasticsearchExceptionMigrates an alias to a data stream- Parameters:
fn- a function that initializes a builder to create theMigrateToDataStreamRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
open
Opens an index.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
open
public final OpenResponse open(java.util.function.Function<OpenRequest.Builder,ObjectBuilder<OpenRequest>> fn) throws java.io.IOException, ElasticsearchExceptionOpens an index.- Parameters:
fn- a function that initializes a builder to create theOpenRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
promoteDataStream
public PromoteDataStreamResponse promoteDataStream(PromoteDataStreamRequest request) throws java.io.IOException, ElasticsearchExceptionPromotes a data stream from a replicated data stream managed by CCR to a regular data stream- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
promoteDataStream
public final PromoteDataStreamResponse promoteDataStream(java.util.function.Function<PromoteDataStreamRequest.Builder,ObjectBuilder<PromoteDataStreamRequest>> fn) throws java.io.IOException, ElasticsearchExceptionPromotes a data stream from a replicated data stream managed by CCR to a regular data stream- Parameters:
fn- a function that initializes a builder to create thePromoteDataStreamRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
putAlias
public PutAliasResponse putAlias(PutAliasRequest request) throws java.io.IOException, ElasticsearchExceptionCreates or updates an alias.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
putAlias
public final PutAliasResponse putAlias(java.util.function.Function<PutAliasRequest.Builder,ObjectBuilder<PutAliasRequest>> fn) throws java.io.IOException, ElasticsearchExceptionCreates or updates an alias.- Parameters:
fn- a function that initializes a builder to create thePutAliasRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
putIndexTemplate
public PutIndexTemplateResponse putIndexTemplate(PutIndexTemplateRequest request) throws java.io.IOException, ElasticsearchExceptionCreates or updates an index template.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
putIndexTemplate
public final PutIndexTemplateResponse putIndexTemplate(java.util.function.Function<PutIndexTemplateRequest.Builder,ObjectBuilder<PutIndexTemplateRequest>> fn) throws java.io.IOException, ElasticsearchExceptionCreates or updates an index template.- Parameters:
fn- a function that initializes a builder to create thePutIndexTemplateRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
putMapping
public PutMappingResponse putMapping(PutMappingRequest request) throws java.io.IOException, ElasticsearchExceptionUpdates the index mappings.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
putMapping
public final PutMappingResponse putMapping(java.util.function.Function<PutMappingRequest.Builder,ObjectBuilder<PutMappingRequest>> fn) throws java.io.IOException, ElasticsearchExceptionUpdates the index mappings.- Parameters:
fn- a function that initializes a builder to create thePutMappingRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
putSettings
public PutIndicesSettingsResponse putSettings(PutIndicesSettingsRequest request) throws java.io.IOException, ElasticsearchExceptionUpdates the index settings.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
putSettings
public final PutIndicesSettingsResponse putSettings(java.util.function.Function<PutIndicesSettingsRequest.Builder,ObjectBuilder<PutIndicesSettingsRequest>> fn) throws java.io.IOException, ElasticsearchExceptionUpdates the index settings.- Parameters:
fn- a function that initializes a builder to create thePutIndicesSettingsRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
putSettings
Updates the index settings.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
putTemplate
public PutTemplateResponse putTemplate(PutTemplateRequest request) throws java.io.IOException, ElasticsearchExceptionCreates or updates an index template.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
putTemplate
public final PutTemplateResponse putTemplate(java.util.function.Function<PutTemplateRequest.Builder,ObjectBuilder<PutTemplateRequest>> fn) throws java.io.IOException, ElasticsearchExceptionCreates or updates an index template.- Parameters:
fn- a function that initializes a builder to create thePutTemplateRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
recovery
public RecoveryResponse recovery(RecoveryRequest request) throws java.io.IOException, ElasticsearchExceptionReturns information about ongoing index shard recoveries.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
recovery
public final RecoveryResponse recovery(java.util.function.Function<RecoveryRequest.Builder,ObjectBuilder<RecoveryRequest>> fn) throws java.io.IOException, ElasticsearchExceptionReturns information about ongoing index shard recoveries.- Parameters:
fn- a function that initializes a builder to create theRecoveryRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
recovery
Returns information about ongoing index shard recoveries.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
refresh
public RefreshResponse refresh(RefreshRequest request) throws java.io.IOException, ElasticsearchExceptionPerforms the refresh operation in one or more indices.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
refresh
public final RefreshResponse refresh(java.util.function.Function<RefreshRequest.Builder,ObjectBuilder<RefreshRequest>> fn) throws java.io.IOException, ElasticsearchExceptionPerforms the refresh operation in one or more indices.- Parameters:
fn- a function that initializes a builder to create theRefreshRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
refresh
Performs the refresh operation in one or more indices.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
reloadSearchAnalyzers
public ReloadSearchAnalyzersResponse reloadSearchAnalyzers(ReloadSearchAnalyzersRequest request) throws java.io.IOException, ElasticsearchExceptionReloads an index's search analyzers and their resources.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
reloadSearchAnalyzers
public final ReloadSearchAnalyzersResponse reloadSearchAnalyzers(java.util.function.Function<ReloadSearchAnalyzersRequest.Builder,ObjectBuilder<ReloadSearchAnalyzersRequest>> fn) throws java.io.IOException, ElasticsearchExceptionReloads an index's search analyzers and their resources.- Parameters:
fn- a function that initializes a builder to create theReloadSearchAnalyzersRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
resolveIndex
public ResolveIndexResponse resolveIndex(ResolveIndexRequest request) throws java.io.IOException, ElasticsearchExceptionReturns information about any matching indices, aliases, and data streams- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
resolveIndex
public final ResolveIndexResponse resolveIndex(java.util.function.Function<ResolveIndexRequest.Builder,ObjectBuilder<ResolveIndexRequest>> fn) throws java.io.IOException, ElasticsearchExceptionReturns information about any matching indices, aliases, and data streams- Parameters:
fn- a function that initializes a builder to create theResolveIndexRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
rollover
public RolloverResponse rollover(RolloverRequest request) throws java.io.IOException, ElasticsearchExceptionUpdates an alias to point to a new index when the existing index is considered to be too large or too old.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
rollover
public final RolloverResponse rollover(java.util.function.Function<RolloverRequest.Builder,ObjectBuilder<RolloverRequest>> fn) throws java.io.IOException, ElasticsearchExceptionUpdates 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
segments
public SegmentsResponse segments(SegmentsRequest request) throws java.io.IOException, ElasticsearchExceptionProvides low-level information about segments in a Lucene index.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
segments
public final SegmentsResponse segments(java.util.function.Function<SegmentsRequest.Builder,ObjectBuilder<SegmentsRequest>> fn) throws java.io.IOException, ElasticsearchExceptionProvides low-level information about segments in a Lucene index.- Parameters:
fn- a function that initializes a builder to create theSegmentsRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
segments
Provides low-level information about segments in a Lucene index.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
shardStores
public ShardStoresResponse shardStores(ShardStoresRequest request) throws java.io.IOException, ElasticsearchExceptionProvides store information for shard copies of indices.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
shardStores
public final ShardStoresResponse shardStores(java.util.function.Function<ShardStoresRequest.Builder,ObjectBuilder<ShardStoresRequest>> fn) throws java.io.IOException, ElasticsearchExceptionProvides store information for shard copies of indices.- Parameters:
fn- a function that initializes a builder to create theShardStoresRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
shardStores
Provides store information for shard copies of indices.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
shrink
public ShrinkResponse shrink(ShrinkRequest request) throws java.io.IOException, ElasticsearchExceptionAllow to shrink an existing index into a new index with fewer primary shards.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
shrink
public final ShrinkResponse shrink(java.util.function.Function<ShrinkRequest.Builder,ObjectBuilder<ShrinkRequest>> fn) throws java.io.IOException, ElasticsearchExceptionAllow 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
simulateIndexTemplate
public SimulateIndexTemplateResponse simulateIndexTemplate(SimulateIndexTemplateRequest request) throws java.io.IOException, ElasticsearchExceptionSimulate matching the given index name against the index templates in the system- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
simulateIndexTemplate
public final SimulateIndexTemplateResponse simulateIndexTemplate(java.util.function.Function<SimulateIndexTemplateRequest.Builder,ObjectBuilder<SimulateIndexTemplateRequest>> fn) throws java.io.IOException, ElasticsearchExceptionSimulate 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
simulateTemplate
public SimulateTemplateResponse simulateTemplate(SimulateTemplateRequest request) throws java.io.IOException, ElasticsearchExceptionSimulate resolving the given template name or body- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
simulateTemplate
public final SimulateTemplateResponse simulateTemplate(java.util.function.Function<SimulateTemplateRequest.Builder,ObjectBuilder<SimulateTemplateRequest>> fn) throws java.io.IOException, ElasticsearchExceptionSimulate resolving the given template name or body- Parameters:
fn- a function that initializes a builder to create theSimulateTemplateRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
simulateTemplate
public SimulateTemplateResponse simulateTemplate() throws java.io.IOException, ElasticsearchExceptionSimulate resolving the given template name or body- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
split
public SplitResponse split(SplitRequest request) throws java.io.IOException, ElasticsearchExceptionAllows you to split an existing index into a new index with more primary shards.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
split
public final SplitResponse split(java.util.function.Function<SplitRequest.Builder,ObjectBuilder<SplitRequest>> fn) throws java.io.IOException, ElasticsearchExceptionAllows 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
stats
public IndicesStatsResponse stats(IndicesStatsRequest request) throws java.io.IOException, ElasticsearchExceptionProvides statistics on operations happening in an index.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
stats
public final IndicesStatsResponse stats(java.util.function.Function<IndicesStatsRequest.Builder,ObjectBuilder<IndicesStatsRequest>> fn) throws java.io.IOException, ElasticsearchExceptionProvides statistics on operations happening in an index.- Parameters:
fn- a function that initializes a builder to create theIndicesStatsRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
stats
Provides statistics on operations happening in an index.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
unfreeze
public UnfreezeResponse unfreeze(UnfreezeRequest request) throws java.io.IOException, ElasticsearchExceptionUnfreezes an index. When a frozen index is unfrozen, the index goes through the normal recovery process and becomes writeable again.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
unfreeze
public final UnfreezeResponse unfreeze(java.util.function.Function<UnfreezeRequest.Builder,ObjectBuilder<UnfreezeRequest>> fn) throws java.io.IOException, ElasticsearchExceptionUnfreezes an index. When a frozen index is unfrozen, the index goes through the normal recovery process and becomes writeable again.- Parameters:
fn- a function that initializes a builder to create theUnfreezeRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
updateAliases
public UpdateAliasesResponse updateAliases(UpdateAliasesRequest request) throws java.io.IOException, ElasticsearchExceptionUpdates index aliases.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
updateAliases
public final UpdateAliasesResponse updateAliases(java.util.function.Function<UpdateAliasesRequest.Builder,ObjectBuilder<UpdateAliasesRequest>> fn) throws java.io.IOException, ElasticsearchExceptionUpdates index aliases.- Parameters:
fn- a function that initializes a builder to create theUpdateAliasesRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
updateAliases
Updates index aliases.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
upgrade
public UpgradeResponse upgrade(UpgradeRequest request) throws java.io.IOException, ElasticsearchExceptionDEPRECATED Upgrades to the current version of Lucene.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
upgrade
public final UpgradeResponse upgrade(java.util.function.Function<UpgradeRequest.Builder,ObjectBuilder<UpgradeRequest>> fn) throws java.io.IOException, ElasticsearchExceptionDEPRECATED Upgrades to the current version of Lucene.- Parameters:
fn- a function that initializes a builder to create theUpgradeRequest- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
upgrade
DEPRECATED Upgrades to the current version of Lucene.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
validateQuery
public ValidateQueryResponse validateQuery(ValidateQueryRequest request) throws java.io.IOException, ElasticsearchExceptionAllows a user to validate a potentially expensive query without executing it.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
validateQuery
public final ValidateQueryResponse validateQuery(java.util.function.Function<ValidateQueryRequest.Builder,ObjectBuilder<ValidateQueryRequest>> fn) throws java.io.IOException, ElasticsearchExceptionAllows 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.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-
validateQuery
Allows a user to validate a potentially expensive query without executing it.- Throws:
java.io.IOExceptionElasticsearchException- See Also:
- Documentation on elastic.co
-