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
ConstructorsConstructorDescriptionElasticsearchIndicesClient(ElasticsearchTransport transport) ElasticsearchIndicesClient(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionaddBlock(AddBlockRequest request) Adds a block to an index.final AddBlockResponseAdds a block to an index.analyze()Performs analysis on a text string and returns the resulting tokens.analyze(AnalyzeRequest request) Performs analysis on a text string and returns the resulting tokens.final AnalyzeResponsePerforms analysis on a text string and returns the resulting tokens.Clears the caches of one or more indices.clearCache(ClearCacheRequest request) Clears the caches of one or more indices.final ClearCacheResponseClears the caches of one or more indices.clone(CloneIndexRequest request) Clones an existing index.final CloneIndexResponseClones an existing index.close(CloseIndexRequest request) Closes an index.final CloseIndexResponseCloses an index.create(CreateIndexRequest request) Creates a new index.final CreateIndexResponseCreates a new index.createDataStream(CreateDataStreamRequest request) Creates a data stream.final CreateDataStreamResponsecreateDataStream(Function<CreateDataStreamRequest.Builder, ObjectBuilder<CreateDataStreamRequest>> fn) Creates a data stream.Retrieves statistics for one or more data streams.dataStreamsStats(DataStreamsStatsRequest request) Retrieves statistics for one or more data streams.final DataStreamsStatsResponsedataStreamsStats(Function<DataStreamsStatsRequest.Builder, ObjectBuilder<DataStreamsStatsRequest>> fn) Retrieves statistics for one or more data streams.delete(DeleteIndexRequest request) Deletes one or more indices.final DeleteIndexResponseDeletes one or more indices.deleteAlias(DeleteAliasRequest request) Removes a data stream or index from an alias.final DeleteAliasResponseRemoves a data stream or index from an alias.Removes the data lifecycle from a data stream rendering it not managed by the data stream lifecycledeleteDataLifecycle(Function<DeleteDataLifecycleRequest.Builder, ObjectBuilder<DeleteDataLifecycleRequest>> fn) Removes the data lifecycle from a data stream rendering it not managed by the data stream lifecycledeleteDataStream(DeleteDataStreamRequest request) Deletes one or more data streams and their backing indices.final DeleteDataStreamResponsedeleteDataStream(Function<DeleteDataStreamRequest.Builder, ObjectBuilder<DeleteDataStreamRequest>> fn) Deletes one or more data streams and their backing indices.Delete an index template.deleteIndexTemplate(Function<DeleteIndexTemplateRequest.Builder, ObjectBuilder<DeleteIndexTemplateRequest>> fn) Delete an index template.deleteTemplate(DeleteTemplateRequest request) Deletes a legacy index template.final DeleteTemplateResponseDeletes a legacy index template.diskUsage(DiskUsageRequest request) Analyzes the disk usage of each field of an index or data stream.final DiskUsageResponseAnalyzes the disk usage of each field of an index or data stream.downsample(DownsampleRequest request) Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min,max,sum,value_countandavg) for each metric field grouped by a configured time interval.final DownsampleResponseAggregates a time series (TSDS) index and stores pre-computed statistical summaries (min,max,sum,value_countandavg) for each metric field grouped by a configured time interval.exists(ExistsRequest request) Checks if a data stream, index, or alias exists.final BooleanResponseChecks if a data stream, index, or alias exists.existsAlias(ExistsAliasRequest request) Checks if an alias exists.final BooleanResponseChecks if an alias exists.Returns information about whether a particular index template exists.final BooleanResponseexistsIndexTemplate(Function<ExistsIndexTemplateRequest.Builder, ObjectBuilder<ExistsIndexTemplateRequest>> fn) Returns information about whether a particular index template exists.existsTemplate(ExistsTemplateRequest request) Check existence of index templates.final BooleanResponseCheck existence of index templates.Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc.explainDataLifecycle(Function<ExplainDataLifecycleRequest.Builder, ObjectBuilder<ExplainDataLifecycleRequest>> fn) Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc.fieldUsageStats(FieldUsageStatsRequest request) Returns field usage information for each shard and field of an index.final FieldUsageStatsResponseReturns field usage information for each shard and field of an index.flush()Flushes one or more data streams or indices.flush(FlushRequest request) Flushes one or more data streams or indices.final FlushResponseFlushes one or more data streams or indices.Performs the force merge operation on one or more indices.forcemerge(ForcemergeRequest request) Performs the force merge operation on one or more indices.final ForcemergeResponsePerforms the force merge operation on one or more indices.get(GetIndexRequest request) Returns information about one or more indices.final GetIndexResponseReturns information about one or more indices.getAlias()Retrieves information for one or more aliases.getAlias(GetAliasRequest request) Retrieves information for one or more aliases.final GetAliasResponseRetrieves information for one or more aliases.getDataLifecycle(GetDataLifecycleRequest request) Retrieves the data stream lifecycle configuration of one or more data streams.final GetDataLifecycleResponsegetDataLifecycle(Function<GetDataLifecycleRequest.Builder, ObjectBuilder<GetDataLifecycleRequest>> fn) Retrieves the data stream lifecycle configuration of one or more data streams.Retrieves information about one or more data streams.getDataStream(GetDataStreamRequest request) Retrieves information about one or more data streams.final GetDataStreamResponseRetrieves information about one or more data streams.getFieldMapping(GetFieldMappingRequest request) Retrieves mapping definitions for one or more fields.final GetFieldMappingResponseRetrieves mapping definitions for one or more fields.Get index templates.getIndexTemplate(GetIndexTemplateRequest request) Get index templates.final GetIndexTemplateResponsegetIndexTemplate(Function<GetIndexTemplateRequest.Builder, ObjectBuilder<GetIndexTemplateRequest>> fn) Get index templates.Retrieves mapping definitions for one or more indices.getMapping(GetMappingRequest request) Retrieves mapping definitions for one or more indices.final GetMappingResponseRetrieves mapping definitions for one or more indices.Returns setting information for one or more indices.getSettings(GetIndicesSettingsRequest request) Returns setting information for one or more indices.getSettings(Function<GetIndicesSettingsRequest.Builder, ObjectBuilder<GetIndicesSettingsRequest>> fn) Returns setting information for one or more indices.Get index templates.getTemplate(GetTemplateRequest request) Get index templates.final GetTemplateResponseGet index templates.Converts an index alias to a data stream.migrateToDataStream(Function<MigrateToDataStreamRequest.Builder, ObjectBuilder<MigrateToDataStreamRequest>> fn) Converts an index alias to a data stream.modifyDataStream(ModifyDataStreamRequest request) Performs one or more data stream modification actions in a single atomic operation.final ModifyDataStreamResponsemodifyDataStream(Function<ModifyDataStreamRequest.Builder, ObjectBuilder<ModifyDataStreamRequest>> fn) Performs one or more data stream modification actions in a single atomic operation.open(OpenRequest request) Opens a closed index.final OpenResponseOpens a closed index.Promotes a data stream from a replicated data stream managed by CCR to a regular data streampromoteDataStream(Function<PromoteDataStreamRequest.Builder, ObjectBuilder<PromoteDataStreamRequest>> fn) Promotes a data stream from a replicated data stream managed by CCR to a regular data streamputAlias(PutAliasRequest request) Adds a data stream or index to an alias.final PutAliasResponseAdds a data stream or index to an alias.putDataLifecycle(PutDataLifecycleRequest request) Update the data lifecycle of the specified data streams.final PutDataLifecycleResponseputDataLifecycle(Function<PutDataLifecycleRequest.Builder, ObjectBuilder<PutDataLifecycleRequest>> fn) Update the data lifecycle of the specified data streams.putIndexTemplate(PutIndexTemplateRequest request) Create or update an index template.final PutIndexTemplateResponseputIndexTemplate(Function<PutIndexTemplateRequest.Builder, ObjectBuilder<PutIndexTemplateRequest>> fn) Create or update an index template.putMapping(PutMappingRequest request) Adds new fields to an existing data stream or index.final PutMappingResponseAdds new fields to an existing data stream or index.Changes a dynamic index setting in real time.putSettings(PutIndicesSettingsRequest request) Changes a dynamic index setting in real time.putSettings(Function<PutIndicesSettingsRequest.Builder, ObjectBuilder<PutIndicesSettingsRequest>> fn) Changes a dynamic index setting in real time.putTemplate(PutTemplateRequest request) Create or update an index template.final PutTemplateResponseCreate or update an index template.recovery()Returns information about ongoing and completed shard recoveries for one or more indices.recovery(RecoveryRequest request) Returns information about ongoing and completed shard recoveries for one or more indices.final RecoveryResponseReturns information about ongoing and completed shard recoveries for one or more indices.refresh()A refresh makes recent operations performed on one or more indices available for search.refresh(RefreshRequest request) A refresh makes recent operations performed on one or more indices available for search.final RefreshResponseA refresh makes recent operations performed on one or more indices available for search.Reloads an index's search analyzers and their resources.reloadSearchAnalyzers(Function<ReloadSearchAnalyzersRequest.Builder, ObjectBuilder<ReloadSearchAnalyzersRequest>> fn) Reloads an index's search analyzers and their resources.resolveCluster(ResolveClusterRequest request) Resolves the specified index expressions to return information about each cluster, including the local cluster, if included.final ResolveClusterResponseResolves the specified index expressions to return information about each cluster, including the local cluster, if included.resolveIndex(ResolveIndexRequest request) Resolves the specified name(s) and/or index patterns for indices, aliases, and data streams.final ResolveIndexResponseResolves the specified name(s) and/or index patterns for indices, aliases, and data streams.rollover(RolloverRequest request) Creates a new index for a data stream or index alias.final RolloverResponseCreates a new index for a data stream or index alias.segments()Returns low-level information about the Lucene segments in index shards.segments(SegmentsRequest request) Returns low-level information about the Lucene segments in index shards.final SegmentsResponseReturns low-level information about the Lucene segments in index shards.Retrieves store information about replica shards in one or more indices.shardStores(ShardStoresRequest request) Retrieves store information about replica shards in one or more indices.final ShardStoresResponseRetrieves store information about replica shards in one or more indices.shrink(ShrinkRequest request) Shrinks an existing index into a new index with fewer primary shards.final ShrinkResponseShrinks an existing index into a new index with fewer primary shards.Simulate an index.simulateIndexTemplate(Function<SimulateIndexTemplateRequest.Builder, ObjectBuilder<SimulateIndexTemplateRequest>> fn) Simulate an index.Simulate an index template.simulateTemplate(SimulateTemplateRequest request) Simulate an index template.final SimulateTemplateResponsesimulateTemplate(Function<SimulateTemplateRequest.Builder, ObjectBuilder<SimulateTemplateRequest>> fn) Simulate an index template.split(SplitRequest request) Splits an existing index into a new index with more primary shards.final SplitResponseSplits an existing index into a new index with more primary shards.stats()Returns statistics for one or more indices.stats(IndicesStatsRequest request) Returns statistics for one or more indices.final IndicesStatsResponseReturns statistics for one or more indices.unfreeze(UnfreezeRequest request) Unfreezes an index.final UnfreezeResponseUnfreezes an index.Adds a data stream or index to an alias.updateAliases(UpdateAliasesRequest request) Adds a data stream or index to an alias.final UpdateAliasesResponseAdds a data stream or index to an alias.Validates a potentially expensive query without executing it.validateQuery(ValidateQueryRequest request) Validates a potentially expensive query without executing it.final ValidateQueryResponseValidates a potentially expensive query without executing it.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchIndicesClient
-
ElasticsearchIndicesClient
public ElasticsearchIndicesClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
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 IOException, ElasticsearchException Adds a block to an index.- Throws:
IOExceptionElasticsearchException- See Also:
-
addBlock
public final AddBlockResponse addBlock(Function<AddBlockRequest.Builder, ObjectBuilder<AddBlockRequest>> fn) throws IOException, ElasticsearchExceptionAdds a block to an index.- Parameters:
fn- a function that initializes a builder to create theAddBlockRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
analyze
Performs analysis on a text string and returns the resulting tokens.- Throws:
IOExceptionElasticsearchException- See Also:
-
analyze
public final AnalyzeResponse analyze(Function<AnalyzeRequest.Builder, ObjectBuilder<AnalyzeRequest>> fn) throws IOException, ElasticsearchExceptionPerforms analysis on a text string and returns the resulting tokens.- Parameters:
fn- a function that initializes a builder to create theAnalyzeRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
analyze
Performs analysis on a text string and returns the resulting tokens.- Throws:
IOExceptionElasticsearchException- See Also:
-
clearCache
public ClearCacheResponse clearCache(ClearCacheRequest request) throws IOException, ElasticsearchException Clears the caches of one or more indices. For data streams, the API clears the caches of the stream’s backing indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
clearCache
public final ClearCacheResponse clearCache(Function<ClearCacheRequest.Builder, ObjectBuilder<ClearCacheRequest>> fn) throws IOException, ElasticsearchExceptionClears the caches of one or more indices. For data streams, the API clears the caches of the stream’s backing indices.- Parameters:
fn- a function that initializes a builder to create theClearCacheRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
clearCache
Clears the caches of one or more indices. For data streams, the API clears the caches of the stream’s backing indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
clone
public CloneIndexResponse clone(CloneIndexRequest request) throws IOException, ElasticsearchException Clones an existing index.- Throws:
IOExceptionElasticsearchException- See Also:
-
clone
public final CloneIndexResponse clone(Function<CloneIndexRequest.Builder, ObjectBuilder<CloneIndexRequest>> fn) throws IOException, ElasticsearchExceptionClones an existing index.- Parameters:
fn- a function that initializes a builder to create theCloneIndexRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
close
public CloseIndexResponse close(CloseIndexRequest request) throws IOException, ElasticsearchException Closes an index.- Throws:
IOExceptionElasticsearchException- See Also:
-
close
public final CloseIndexResponse close(Function<CloseIndexRequest.Builder, ObjectBuilder<CloseIndexRequest>> fn) throws IOException, ElasticsearchExceptionCloses an index.- Parameters:
fn- a function that initializes a builder to create theCloseIndexRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
create
public CreateIndexResponse create(CreateIndexRequest request) throws IOException, ElasticsearchException Creates a new index.- Throws:
IOExceptionElasticsearchException- See Also:
-
create
public final CreateIndexResponse create(Function<CreateIndexRequest.Builder, ObjectBuilder<CreateIndexRequest>> fn) throws IOException, ElasticsearchExceptionCreates a new index.- Parameters:
fn- a function that initializes a builder to create theCreateIndexRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
createDataStream
public CreateDataStreamResponse createDataStream(CreateDataStreamRequest request) throws IOException, ElasticsearchException Creates a data stream. You must have a matching index template with data stream enabled.- Throws:
IOExceptionElasticsearchException- See Also:
-
createDataStream
public final CreateDataStreamResponse createDataStream(Function<CreateDataStreamRequest.Builder, ObjectBuilder<CreateDataStreamRequest>> fn) throws IOException, ElasticsearchExceptionCreates a data stream. You must have a matching index template with data stream enabled.- Parameters:
fn- a function that initializes a builder to create theCreateDataStreamRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
dataStreamsStats
public DataStreamsStatsResponse dataStreamsStats(DataStreamsStatsRequest request) throws IOException, ElasticsearchException Retrieves statistics for one or more data streams.- Throws:
IOExceptionElasticsearchException- See Also:
-
dataStreamsStats
public final DataStreamsStatsResponse dataStreamsStats(Function<DataStreamsStatsRequest.Builder, ObjectBuilder<DataStreamsStatsRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves statistics for one or more data streams.- Parameters:
fn- a function that initializes a builder to create theDataStreamsStatsRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
dataStreamsStats
Retrieves statistics for one or more data streams.- Throws:
IOExceptionElasticsearchException- See Also:
-
delete
public DeleteIndexResponse delete(DeleteIndexRequest request) throws IOException, ElasticsearchException Deletes one or more indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
delete
public final DeleteIndexResponse delete(Function<DeleteIndexRequest.Builder, ObjectBuilder<DeleteIndexRequest>> fn) throws IOException, ElasticsearchExceptionDeletes one or more indices.- Parameters:
fn- a function that initializes a builder to create theDeleteIndexRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
deleteAlias
public DeleteAliasResponse deleteAlias(DeleteAliasRequest request) throws IOException, ElasticsearchException Removes a data stream or index from an alias.- Throws:
IOExceptionElasticsearchException- See Also:
-
deleteAlias
public final DeleteAliasResponse deleteAlias(Function<DeleteAliasRequest.Builder, ObjectBuilder<DeleteAliasRequest>> fn) throws IOException, ElasticsearchExceptionRemoves a data stream or index from an alias.- Parameters:
fn- a function that initializes a builder to create theDeleteAliasRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
deleteDataLifecycle
public DeleteDataLifecycleResponse deleteDataLifecycle(DeleteDataLifecycleRequest request) throws IOException, ElasticsearchException Removes the data lifecycle from a data stream rendering it not managed by the data stream lifecycle- Throws:
IOExceptionElasticsearchException- See Also:
-
deleteDataLifecycle
public final DeleteDataLifecycleResponse deleteDataLifecycle(Function<DeleteDataLifecycleRequest.Builder, ObjectBuilder<DeleteDataLifecycleRequest>> fn) throws IOException, ElasticsearchExceptionRemoves the data lifecycle from a data stream rendering it not managed by the data stream lifecycle- Parameters:
fn- a function that initializes a builder to create theDeleteDataLifecycleRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
deleteDataStream
public DeleteDataStreamResponse deleteDataStream(DeleteDataStreamRequest request) throws IOException, ElasticsearchException Deletes one or more data streams and their backing indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
deleteDataStream
public final DeleteDataStreamResponse deleteDataStream(Function<DeleteDataStreamRequest.Builder, ObjectBuilder<DeleteDataStreamRequest>> fn) throws IOException, ElasticsearchExceptionDeletes one or more data streams and their backing indices.- Parameters:
fn- a function that initializes a builder to create theDeleteDataStreamRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
deleteIndexTemplate
public DeleteIndexTemplateResponse deleteIndexTemplate(DeleteIndexTemplateRequest request) throws IOException, ElasticsearchException Delete an index template. The provided <index-template> may contain multiple template names separated by a comma. If multiple template names are specified then there is no wildcard support and the provided names should match completely with existing templates.- Throws:
IOExceptionElasticsearchException- See Also:
-
deleteIndexTemplate
public final DeleteIndexTemplateResponse deleteIndexTemplate(Function<DeleteIndexTemplateRequest.Builder, ObjectBuilder<DeleteIndexTemplateRequest>> fn) throws IOException, ElasticsearchExceptionDelete an index template. The provided <index-template> may contain multiple template names separated by a comma. If multiple template names are specified then there is no wildcard support and the provided names should match completely with existing templates.- Parameters:
fn- a function that initializes a builder to create theDeleteIndexTemplateRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
deleteTemplate
public DeleteTemplateResponse deleteTemplate(DeleteTemplateRequest request) throws IOException, ElasticsearchException Deletes a legacy index template.- Throws:
IOExceptionElasticsearchException- See Also:
-
deleteTemplate
public final DeleteTemplateResponse deleteTemplate(Function<DeleteTemplateRequest.Builder, ObjectBuilder<DeleteTemplateRequest>> fn) throws IOException, ElasticsearchExceptionDeletes a legacy index template.- Parameters:
fn- a function that initializes a builder to create theDeleteTemplateRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
diskUsage
public DiskUsageResponse diskUsage(DiskUsageRequest request) throws IOException, ElasticsearchException Analyzes the disk usage of each field of an index or data stream.- Throws:
IOExceptionElasticsearchException- See Also:
-
diskUsage
public final DiskUsageResponse diskUsage(Function<DiskUsageRequest.Builder, ObjectBuilder<DiskUsageRequest>> fn) throws 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:
IOExceptionElasticsearchException- See Also:
-
downsample
public DownsampleResponse downsample(DownsampleRequest request) throws IOException, ElasticsearchException Aggregates a time series (TSDS) index and stores pre-computed statistical summaries (min,max,sum,value_countandavg) for each metric field grouped by a configured time interval.- Throws:
IOExceptionElasticsearchException- See Also:
-
downsample
public final DownsampleResponse downsample(Function<DownsampleRequest.Builder, ObjectBuilder<DownsampleRequest>> fn) throws IOException, ElasticsearchExceptionAggregates a time series (TSDS) index and stores pre-computed statistical summaries (min,max,sum,value_countandavg) for each metric field grouped by a configured time interval.- Parameters:
fn- a function that initializes a builder to create theDownsampleRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
exists
Checks if a data stream, index, or alias exists.- Throws:
IOExceptionElasticsearchException- See Also:
-
exists
public final BooleanResponse exists(Function<ExistsRequest.Builder, ObjectBuilder<ExistsRequest>> fn) throws IOException, ElasticsearchExceptionChecks if a data stream, index, or alias exists.- Parameters:
fn- a function that initializes a builder to create theExistsRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
existsAlias
public BooleanResponse existsAlias(ExistsAliasRequest request) throws IOException, ElasticsearchException Checks if an alias exists.- Throws:
IOExceptionElasticsearchException- See Also:
-
existsAlias
public final BooleanResponse existsAlias(Function<ExistsAliasRequest.Builder, ObjectBuilder<ExistsAliasRequest>> fn) throws IOException, ElasticsearchExceptionChecks if an alias exists.- Parameters:
fn- a function that initializes a builder to create theExistsAliasRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
existsIndexTemplate
public BooleanResponse existsIndexTemplate(ExistsIndexTemplateRequest request) throws IOException, ElasticsearchException Returns information about whether a particular index template exists.- Throws:
IOExceptionElasticsearchException- See Also:
-
existsIndexTemplate
public final BooleanResponse existsIndexTemplate(Function<ExistsIndexTemplateRequest.Builder, ObjectBuilder<ExistsIndexTemplateRequest>> fn) throws IOException, ElasticsearchExceptionReturns information about whether a particular index template exists.- Parameters:
fn- a function that initializes a builder to create theExistsIndexTemplateRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
existsTemplate
public BooleanResponse existsTemplate(ExistsTemplateRequest request) throws IOException, ElasticsearchException Check existence of index templates. Returns information about whether a particular index template exists.- Throws:
IOExceptionElasticsearchException- See Also:
-
existsTemplate
public final BooleanResponse existsTemplate(Function<ExistsTemplateRequest.Builder, ObjectBuilder<ExistsTemplateRequest>> fn) throws IOException, ElasticsearchExceptionCheck existence of index templates. Returns information about whether a particular index template exists.- Parameters:
fn- a function that initializes a builder to create theExistsTemplateRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
explainDataLifecycle
public ExplainDataLifecycleResponse explainDataLifecycle(ExplainDataLifecycleRequest request) throws IOException, ElasticsearchException Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc.- Throws:
IOExceptionElasticsearchException- See Also:
-
explainDataLifecycle
public final ExplainDataLifecycleResponse explainDataLifecycle(Function<ExplainDataLifecycleRequest.Builder, ObjectBuilder<ExplainDataLifecycleRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc.- Parameters:
fn- a function that initializes a builder to create theExplainDataLifecycleRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
fieldUsageStats
public FieldUsageStatsResponse fieldUsageStats(FieldUsageStatsRequest request) throws IOException, ElasticsearchException Returns field usage information for each shard and field of an index.- Throws:
IOExceptionElasticsearchException- See Also:
-
fieldUsageStats
public final FieldUsageStatsResponse fieldUsageStats(Function<FieldUsageStatsRequest.Builder, ObjectBuilder<FieldUsageStatsRequest>> fn) throws IOException, ElasticsearchExceptionReturns field usage information for each shard and field of an index.- Parameters:
fn- a function that initializes a builder to create theFieldUsageStatsRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
flush
Flushes one or more data streams or indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
flush
public final FlushResponse flush(Function<FlushRequest.Builder, ObjectBuilder<FlushRequest>> fn) throws IOException, ElasticsearchExceptionFlushes one or more data streams or indices.- Parameters:
fn- a function that initializes a builder to create theFlushRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
flush
Flushes one or more data streams or indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
forcemerge
public ForcemergeResponse forcemerge(ForcemergeRequest request) throws IOException, ElasticsearchException Performs the force merge operation on one or more indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
forcemerge
public final ForcemergeResponse forcemerge(Function<ForcemergeRequest.Builder, ObjectBuilder<ForcemergeRequest>> fn) throws IOException, ElasticsearchExceptionPerforms the force merge operation on one or more indices.- Parameters:
fn- a function that initializes a builder to create theForcemergeRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
forcemerge
Performs the force merge operation on one or more indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
get
Returns information about one or more indices. For data streams, the API returns information about the stream’s backing indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
get
public final GetIndexResponse get(Function<GetIndexRequest.Builder, ObjectBuilder<GetIndexRequest>> fn) throws IOException, ElasticsearchExceptionReturns information about one or more indices. For data streams, the API returns information about the stream’s backing indices.- Parameters:
fn- a function that initializes a builder to create theGetIndexRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
getAlias
public GetAliasResponse getAlias(GetAliasRequest request) throws IOException, ElasticsearchException Retrieves information for one or more aliases.- Throws:
IOExceptionElasticsearchException- See Also:
-
getAlias
public final GetAliasResponse getAlias(Function<GetAliasRequest.Builder, ObjectBuilder<GetAliasRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves information for one or more aliases.- Parameters:
fn- a function that initializes a builder to create theGetAliasRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
getAlias
Retrieves information for one or more aliases.- Throws:
IOExceptionElasticsearchException- See Also:
-
getDataLifecycle
public GetDataLifecycleResponse getDataLifecycle(GetDataLifecycleRequest request) throws IOException, ElasticsearchException Retrieves the data stream lifecycle configuration of one or more data streams.- Throws:
IOExceptionElasticsearchException- See Also:
-
getDataLifecycle
public final GetDataLifecycleResponse getDataLifecycle(Function<GetDataLifecycleRequest.Builder, ObjectBuilder<GetDataLifecycleRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves the data stream lifecycle configuration of one or more data streams.- Parameters:
fn- a function that initializes a builder to create theGetDataLifecycleRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
getDataStream
public GetDataStreamResponse getDataStream(GetDataStreamRequest request) throws IOException, ElasticsearchException Retrieves information about one or more data streams.- Throws:
IOExceptionElasticsearchException- See Also:
-
getDataStream
public final GetDataStreamResponse getDataStream(Function<GetDataStreamRequest.Builder, ObjectBuilder<GetDataStreamRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves information about one or more data streams.- Parameters:
fn- a function that initializes a builder to create theGetDataStreamRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
getDataStream
Retrieves information about one or more data streams.- Throws:
IOExceptionElasticsearchException- See Also:
-
getFieldMapping
public GetFieldMappingResponse getFieldMapping(GetFieldMappingRequest request) throws IOException, ElasticsearchException Retrieves mapping definitions for one or more fields. For data streams, the API retrieves field mappings for the stream’s backing indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
getFieldMapping
public final GetFieldMappingResponse getFieldMapping(Function<GetFieldMappingRequest.Builder, ObjectBuilder<GetFieldMappingRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves mapping definitions for one or more fields. For data streams, the API retrieves field mappings for the stream’s backing indices.- Parameters:
fn- a function that initializes a builder to create theGetFieldMappingRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
getIndexTemplate
public GetIndexTemplateResponse getIndexTemplate(GetIndexTemplateRequest request) throws IOException, ElasticsearchException Get index templates. Returns information about one or more index templates.- Throws:
IOExceptionElasticsearchException- See Also:
-
getIndexTemplate
public final GetIndexTemplateResponse getIndexTemplate(Function<GetIndexTemplateRequest.Builder, ObjectBuilder<GetIndexTemplateRequest>> fn) throws IOException, ElasticsearchExceptionGet index templates. Returns information about one or more index templates.- Parameters:
fn- a function that initializes a builder to create theGetIndexTemplateRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
getIndexTemplate
Get index templates. Returns information about one or more index templates.- Throws:
IOExceptionElasticsearchException- See Also:
-
getMapping
public GetMappingResponse getMapping(GetMappingRequest request) throws IOException, ElasticsearchException Retrieves mapping definitions for one or more indices. For data streams, the API retrieves mappings for the stream’s backing indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
getMapping
public final GetMappingResponse getMapping(Function<GetMappingRequest.Builder, ObjectBuilder<GetMappingRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves mapping definitions for one or more indices. For data streams, the API retrieves mappings for the stream’s backing indices.- Parameters:
fn- a function that initializes a builder to create theGetMappingRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
getMapping
Retrieves mapping definitions for one or more indices. For data streams, the API retrieves mappings for the stream’s backing indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
getSettings
public GetIndicesSettingsResponse getSettings(GetIndicesSettingsRequest request) throws IOException, ElasticsearchException Returns setting information for one or more indices. For data streams, returns setting information for the stream’s backing indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
getSettings
public final GetIndicesSettingsResponse getSettings(Function<GetIndicesSettingsRequest.Builder, ObjectBuilder<GetIndicesSettingsRequest>> fn) throws IOException, ElasticsearchExceptionReturns setting information for one or more indices. For data streams, returns setting information for the stream’s backing indices.- Parameters:
fn- a function that initializes a builder to create theGetIndicesSettingsRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
getSettings
Returns setting information for one or more indices. For data streams, returns setting information for the stream’s backing indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
getTemplate
public GetTemplateResponse getTemplate(GetTemplateRequest request) throws IOException, ElasticsearchException Get index templates. Retrieves information about one or more index templates.- Throws:
IOExceptionElasticsearchException- See Also:
-
getTemplate
public final GetTemplateResponse getTemplate(Function<GetTemplateRequest.Builder, ObjectBuilder<GetTemplateRequest>> fn) throws IOException, ElasticsearchExceptionGet index templates. Retrieves information about one or more index templates.- Parameters:
fn- a function that initializes a builder to create theGetTemplateRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
getTemplate
Get index templates. Retrieves information about one or more index templates.- Throws:
IOExceptionElasticsearchException- See Also:
-
migrateToDataStream
public MigrateToDataStreamResponse migrateToDataStream(MigrateToDataStreamRequest request) throws IOException, ElasticsearchException Converts an index alias to a data stream. You must have a matching index template that is data stream enabled. The alias must meet the following criteria: The alias must have a write index; All indices for the alias must have a@timestampfield mapping of adateordate_nanosfield type; The alias must not have any filters; The alias must not use custom routing. If successful, the request removes the alias and creates a data stream with the same name. The indices for the alias become hidden backing indices for the stream. The write index for the alias becomes the write index for the stream.- Throws:
IOExceptionElasticsearchException- See Also:
-
migrateToDataStream
public final MigrateToDataStreamResponse migrateToDataStream(Function<MigrateToDataStreamRequest.Builder, ObjectBuilder<MigrateToDataStreamRequest>> fn) throws IOException, ElasticsearchExceptionConverts an index alias to a data stream. You must have a matching index template that is data stream enabled. The alias must meet the following criteria: The alias must have a write index; All indices for the alias must have a@timestampfield mapping of adateordate_nanosfield type; The alias must not have any filters; The alias must not use custom routing. If successful, the request removes the alias and creates a data stream with the same name. The indices for the alias become hidden backing indices for the stream. The write index for the alias becomes the write index for the stream.- Parameters:
fn- a function that initializes a builder to create theMigrateToDataStreamRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
modifyDataStream
public ModifyDataStreamResponse modifyDataStream(ModifyDataStreamRequest request) throws IOException, ElasticsearchException Performs one or more data stream modification actions in a single atomic operation.- Throws:
IOExceptionElasticsearchException- See Also:
-
modifyDataStream
public final ModifyDataStreamResponse modifyDataStream(Function<ModifyDataStreamRequest.Builder, ObjectBuilder<ModifyDataStreamRequest>> fn) throws IOException, ElasticsearchExceptionPerforms one or more data stream modification actions in a single atomic operation.- Parameters:
fn- a function that initializes a builder to create theModifyDataStreamRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
open
Opens a closed index. For data streams, the API opens any closed backing indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
open
public final OpenResponse open(Function<OpenRequest.Builder, ObjectBuilder<OpenRequest>> fn) throws IOException, ElasticsearchExceptionOpens a closed index. For data streams, the API opens any closed backing indices.- Parameters:
fn- a function that initializes a builder to create theOpenRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
promoteDataStream
public PromoteDataStreamResponse promoteDataStream(PromoteDataStreamRequest request) throws IOException, ElasticsearchException Promotes a data stream from a replicated data stream managed by CCR to a regular data stream- Throws:
IOExceptionElasticsearchException- See Also:
-
promoteDataStream
public final PromoteDataStreamResponse promoteDataStream(Function<PromoteDataStreamRequest.Builder, ObjectBuilder<PromoteDataStreamRequest>> fn) throws 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:
IOExceptionElasticsearchException- See Also:
-
putAlias
public PutAliasResponse putAlias(PutAliasRequest request) throws IOException, ElasticsearchException Adds a data stream or index to an alias.- Throws:
IOExceptionElasticsearchException- See Also:
-
putAlias
public final PutAliasResponse putAlias(Function<PutAliasRequest.Builder, ObjectBuilder<PutAliasRequest>> fn) throws IOException, ElasticsearchExceptionAdds a data stream or index to an alias.- Parameters:
fn- a function that initializes a builder to create thePutAliasRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
putDataLifecycle
public PutDataLifecycleResponse putDataLifecycle(PutDataLifecycleRequest request) throws IOException, ElasticsearchException Update the data lifecycle of the specified data streams.- Throws:
IOExceptionElasticsearchException- See Also:
-
putDataLifecycle
public final PutDataLifecycleResponse putDataLifecycle(Function<PutDataLifecycleRequest.Builder, ObjectBuilder<PutDataLifecycleRequest>> fn) throws IOException, ElasticsearchExceptionUpdate the data lifecycle of the specified data streams.- Parameters:
fn- a function that initializes a builder to create thePutDataLifecycleRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
putIndexTemplate
public PutIndexTemplateResponse putIndexTemplate(PutIndexTemplateRequest request) throws IOException, ElasticsearchException Create or update an index template. Index templates define settings, mappings, and aliases that can be applied automatically to new indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
putIndexTemplate
public final PutIndexTemplateResponse putIndexTemplate(Function<PutIndexTemplateRequest.Builder, ObjectBuilder<PutIndexTemplateRequest>> fn) throws IOException, ElasticsearchExceptionCreate or update an index template. Index templates define settings, mappings, and aliases that can be applied automatically to new indices.- Parameters:
fn- a function that initializes a builder to create thePutIndexTemplateRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
putMapping
public PutMappingResponse putMapping(PutMappingRequest request) throws IOException, ElasticsearchException Adds new fields to an existing data stream or index. You can also use this API to change the search settings of existing fields. For data streams, these changes are applied to all backing indices by default.- Throws:
IOExceptionElasticsearchException- See Also:
-
putMapping
public final PutMappingResponse putMapping(Function<PutMappingRequest.Builder, ObjectBuilder<PutMappingRequest>> fn) throws IOException, ElasticsearchExceptionAdds new fields to an existing data stream or index. You can also use this API to change the search settings of existing fields. For data streams, these changes are applied to all backing indices by default.- Parameters:
fn- a function that initializes a builder to create thePutMappingRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
putSettings
public PutIndicesSettingsResponse putSettings(PutIndicesSettingsRequest request) throws IOException, ElasticsearchException Changes a dynamic index setting in real time. For data streams, index setting changes are applied to all backing indices by default.- Throws:
IOExceptionElasticsearchException- See Also:
-
putSettings
public final PutIndicesSettingsResponse putSettings(Function<PutIndicesSettingsRequest.Builder, ObjectBuilder<PutIndicesSettingsRequest>> fn) throws IOException, ElasticsearchExceptionChanges a dynamic index setting in real time. For data streams, index setting changes are applied to all backing indices by default.- Parameters:
fn- a function that initializes a builder to create thePutIndicesSettingsRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
putSettings
Changes a dynamic index setting in real time. For data streams, index setting changes are applied to all backing indices by default.- Throws:
IOExceptionElasticsearchException- See Also:
-
putTemplate
public PutTemplateResponse putTemplate(PutTemplateRequest request) throws IOException, ElasticsearchException Create or update an index template. Index templates define settings, mappings, and aliases that can be applied automatically to new indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
putTemplate
public final PutTemplateResponse putTemplate(Function<PutTemplateRequest.Builder, ObjectBuilder<PutTemplateRequest>> fn) throws IOException, ElasticsearchExceptionCreate or update an index template. Index templates define settings, mappings, and aliases that can be applied automatically to new indices.- Parameters:
fn- a function that initializes a builder to create thePutTemplateRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
recovery
public RecoveryResponse recovery(RecoveryRequest request) throws IOException, ElasticsearchException Returns information about ongoing and completed shard recoveries for one or more indices. For data streams, the API returns information for the stream’s backing indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
recovery
public final RecoveryResponse recovery(Function<RecoveryRequest.Builder, ObjectBuilder<RecoveryRequest>> fn) throws IOException, ElasticsearchExceptionReturns information about ongoing and completed shard recoveries for one or more indices. For data streams, the API returns information for the stream’s backing indices.- Parameters:
fn- a function that initializes a builder to create theRecoveryRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
recovery
Returns information about ongoing and completed shard recoveries for one or more indices. For data streams, the API returns information for the stream’s backing indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
refresh
A refresh makes recent operations performed on one or more indices available for search. For data streams, the API runs the refresh operation on the stream’s backing indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
refresh
public final RefreshResponse refresh(Function<RefreshRequest.Builder, ObjectBuilder<RefreshRequest>> fn) throws IOException, ElasticsearchExceptionA refresh makes recent operations performed on one or more indices available for search. For data streams, the API runs the refresh operation on the stream’s backing indices.- Parameters:
fn- a function that initializes a builder to create theRefreshRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
refresh
A refresh makes recent operations performed on one or more indices available for search. For data streams, the API runs the refresh operation on the stream’s backing indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
reloadSearchAnalyzers
public ReloadSearchAnalyzersResponse reloadSearchAnalyzers(ReloadSearchAnalyzersRequest request) throws IOException, ElasticsearchException Reloads an index's search analyzers and their resources.- Throws:
IOExceptionElasticsearchException- See Also:
-
reloadSearchAnalyzers
public final ReloadSearchAnalyzersResponse reloadSearchAnalyzers(Function<ReloadSearchAnalyzersRequest.Builder, ObjectBuilder<ReloadSearchAnalyzersRequest>> fn) throws IOException, ElasticsearchExceptionReloads an index's search analyzers and their resources.- Parameters:
fn- a function that initializes a builder to create theReloadSearchAnalyzersRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
resolveCluster
public ResolveClusterResponse resolveCluster(ResolveClusterRequest request) throws IOException, ElasticsearchException Resolves the specified index expressions to return information about each cluster, including the local cluster, if included. Multiple patterns and remote clusters are supported.- Throws:
IOExceptionElasticsearchException- See Also:
-
resolveCluster
public final ResolveClusterResponse resolveCluster(Function<ResolveClusterRequest.Builder, ObjectBuilder<ResolveClusterRequest>> fn) throws IOException, ElasticsearchExceptionResolves the specified index expressions to return information about each cluster, including the local cluster, if included. Multiple patterns and remote clusters are supported.- Parameters:
fn- a function that initializes a builder to create theResolveClusterRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
resolveIndex
public ResolveIndexResponse resolveIndex(ResolveIndexRequest request) throws IOException, ElasticsearchException Resolves the specified name(s) and/or index patterns for indices, aliases, and data streams. Multiple patterns and remote clusters are supported.- Throws:
IOExceptionElasticsearchException- See Also:
-
resolveIndex
public final ResolveIndexResponse resolveIndex(Function<ResolveIndexRequest.Builder, ObjectBuilder<ResolveIndexRequest>> fn) throws IOException, ElasticsearchExceptionResolves the specified name(s) and/or index patterns for indices, aliases, and data streams. Multiple patterns and remote clusters are supported.- Parameters:
fn- a function that initializes a builder to create theResolveIndexRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
rollover
public RolloverResponse rollover(RolloverRequest request) throws IOException, ElasticsearchException Creates a new index for a data stream or index alias.- Throws:
IOExceptionElasticsearchException- See Also:
-
rollover
public final RolloverResponse rollover(Function<RolloverRequest.Builder, ObjectBuilder<RolloverRequest>> fn) throws IOException, ElasticsearchExceptionCreates a new index for a data stream or index alias.- Parameters:
fn- a function that initializes a builder to create theRolloverRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
segments
public SegmentsResponse segments(SegmentsRequest request) throws IOException, ElasticsearchException Returns low-level information about the Lucene segments in index shards. For data streams, the API returns information about the stream’s backing indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
segments
public final SegmentsResponse segments(Function<SegmentsRequest.Builder, ObjectBuilder<SegmentsRequest>> fn) throws IOException, ElasticsearchExceptionReturns low-level information about the Lucene segments in index shards. For data streams, the API returns information about the stream’s backing indices.- Parameters:
fn- a function that initializes a builder to create theSegmentsRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
segments
Returns low-level information about the Lucene segments in index shards. For data streams, the API returns information about the stream’s backing indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
shardStores
public ShardStoresResponse shardStores(ShardStoresRequest request) throws IOException, ElasticsearchException Retrieves store information about replica shards in one or more indices. For data streams, the API retrieves store information for the stream’s backing indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
shardStores
public final ShardStoresResponse shardStores(Function<ShardStoresRequest.Builder, ObjectBuilder<ShardStoresRequest>> fn) throws IOException, ElasticsearchExceptionRetrieves store information about replica shards in one or more indices. For data streams, the API retrieves store information for the stream’s backing indices.- Parameters:
fn- a function that initializes a builder to create theShardStoresRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
shardStores
Retrieves store information about replica shards in one or more indices. For data streams, the API retrieves store information for the stream’s backing indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
shrink
Shrinks an existing index into a new index with fewer primary shards.- Throws:
IOExceptionElasticsearchException- See Also:
-
shrink
public final ShrinkResponse shrink(Function<ShrinkRequest.Builder, ObjectBuilder<ShrinkRequest>> fn) throws IOException, ElasticsearchExceptionShrinks an existing index into a new index with fewer primary shards.- Parameters:
fn- a function that initializes a builder to create theShrinkRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
simulateIndexTemplate
public SimulateIndexTemplateResponse simulateIndexTemplate(SimulateIndexTemplateRequest request) throws IOException, ElasticsearchException Simulate an index. Returns the index configuration that would be applied to the specified index from an existing index template.- Throws:
IOExceptionElasticsearchException- See Also:
-
simulateIndexTemplate
public final SimulateIndexTemplateResponse simulateIndexTemplate(Function<SimulateIndexTemplateRequest.Builder, ObjectBuilder<SimulateIndexTemplateRequest>> fn) throws IOException, ElasticsearchExceptionSimulate an index. Returns the index configuration that would be applied to the specified index from an existing index template.- Parameters:
fn- a function that initializes a builder to create theSimulateIndexTemplateRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
simulateTemplate
public SimulateTemplateResponse simulateTemplate(SimulateTemplateRequest request) throws IOException, ElasticsearchException Simulate an index template. Returns the index configuration that would be applied by a particular index template.- Throws:
IOExceptionElasticsearchException- See Also:
-
simulateTemplate
public final SimulateTemplateResponse simulateTemplate(Function<SimulateTemplateRequest.Builder, ObjectBuilder<SimulateTemplateRequest>> fn) throws IOException, ElasticsearchExceptionSimulate an index template. Returns the index configuration that would be applied by a particular index template.- Parameters:
fn- a function that initializes a builder to create theSimulateTemplateRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
simulateTemplate
Simulate an index template. Returns the index configuration that would be applied by a particular index template.- Throws:
IOExceptionElasticsearchException- See Also:
-
split
Splits an existing index into a new index with more primary shards.- Throws:
IOExceptionElasticsearchException- See Also:
-
split
public final SplitResponse split(Function<SplitRequest.Builder, ObjectBuilder<SplitRequest>> fn) throws IOException, ElasticsearchExceptionSplits an existing index into a new index with more primary shards.- Parameters:
fn- a function that initializes a builder to create theSplitRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
stats
public IndicesStatsResponse stats(IndicesStatsRequest request) throws IOException, ElasticsearchException Returns statistics for one or more indices. For data streams, the API retrieves statistics for the stream’s backing indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
stats
public final IndicesStatsResponse stats(Function<IndicesStatsRequest.Builder, ObjectBuilder<IndicesStatsRequest>> fn) throws IOException, ElasticsearchExceptionReturns statistics for one or more indices. For data streams, the API retrieves statistics for the stream’s backing indices.- Parameters:
fn- a function that initializes a builder to create theIndicesStatsRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
stats
Returns statistics for one or more indices. For data streams, the API retrieves statistics for the stream’s backing indices.- Throws:
IOExceptionElasticsearchException- See Also:
-
unfreeze
public UnfreezeResponse unfreeze(UnfreezeRequest request) throws IOException, ElasticsearchException Unfreezes an index.- Throws:
IOExceptionElasticsearchException- See Also:
-
unfreeze
public final UnfreezeResponse unfreeze(Function<UnfreezeRequest.Builder, ObjectBuilder<UnfreezeRequest>> fn) throws IOException, ElasticsearchExceptionUnfreezes an index.- Parameters:
fn- a function that initializes a builder to create theUnfreezeRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
updateAliases
public UpdateAliasesResponse updateAliases(UpdateAliasesRequest request) throws IOException, ElasticsearchException Adds a data stream or index to an alias.- Throws:
IOExceptionElasticsearchException- See Also:
-
updateAliases
public final UpdateAliasesResponse updateAliases(Function<UpdateAliasesRequest.Builder, ObjectBuilder<UpdateAliasesRequest>> fn) throws IOException, ElasticsearchExceptionAdds a data stream or index to an alias.- Parameters:
fn- a function that initializes a builder to create theUpdateAliasesRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
updateAliases
Adds a data stream or index to an alias.- Throws:
IOExceptionElasticsearchException- See Also:
-
validateQuery
public ValidateQueryResponse validateQuery(ValidateQueryRequest request) throws IOException, ElasticsearchException Validates a potentially expensive query without executing it.- Throws:
IOExceptionElasticsearchException- See Also:
-
validateQuery
public final ValidateQueryResponse validateQuery(Function<ValidateQueryRequest.Builder, ObjectBuilder<ValidateQueryRequest>> fn) throws IOException, ElasticsearchExceptionValidates a potentially expensive query without executing it.- Parameters:
fn- a function that initializes a builder to create theValidateQueryRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
validateQuery
Validates a potentially expensive query without executing it.- Throws:
IOExceptionElasticsearchException- See Also:
-