Package org.opensearch.client
Class IndicesClient
java.lang.Object
org.opensearch.client.IndicesClient
A wrapper for the
RestHighLevelClient that provides methods for accessing the Indices API.-
Method Summary
Modifier and TypeMethodDescriptionanalyze(AnalyzeRequest request, org.opensearch.client.RequestOptions options) Calls the analyze APIorg.opensearch.client.CancellableanalyzeAsync(AnalyzeRequest request, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<AnalyzeResponse> listener) Asynchronously calls the analyze APIorg.opensearch.action.admin.indices.cache.clear.ClearIndicesCacheResponseclearCache(org.opensearch.action.admin.indices.cache.clear.ClearIndicesCacheRequest clearIndicesCacheRequest, org.opensearch.client.RequestOptions options) Clears the cache of one or more indices using the Clear Cache API.org.opensearch.client.CancellableclearCacheAsync(org.opensearch.action.admin.indices.cache.clear.ClearIndicesCacheRequest clearIndicesCacheRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.admin.indices.cache.clear.ClearIndicesCacheResponse> listener) Asynchronously clears the cache of one or more indices using the Clear Cache API.org.opensearch.action.admin.indices.shrink.ResizeResponseclone(org.opensearch.action.admin.indices.shrink.ResizeRequest resizeRequest, org.opensearch.client.RequestOptions options) Deprecated.clone(ResizeRequest resizeRequest, org.opensearch.client.RequestOptions options) Clones an index using the Clone Index API.org.opensearch.client.CancellablecloneAsync(org.opensearch.action.admin.indices.shrink.ResizeRequest resizeRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.admin.indices.shrink.ResizeResponse> listener) Deprecated.org.opensearch.client.CancellablecloneAsync(ResizeRequest resizeRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<ResizeResponse> listener) Asynchronously clones an index using the Clone Index API.close(CloseIndexRequest closeIndexRequest, org.opensearch.client.RequestOptions options) Closes an index using the Close Index API.org.opensearch.client.CancellablecloseAsync(CloseIndexRequest closeIndexRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<CloseIndexResponse> listener) Asynchronously closes an index using the Close Index API.create(CreateIndexRequest createIndexRequest, org.opensearch.client.RequestOptions options) Creates an index using the Create Index API.org.opensearch.client.CancellablecreateAsync(CreateIndexRequest createIndexRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<CreateIndexResponse> listener) Asynchronously creates an index using the Create Index API.org.opensearch.action.support.master.AcknowledgedResponsecreateDataStream(CreateDataStreamRequest createDataStreamRequest, org.opensearch.client.RequestOptions options) Creates a data stream using the Create Data Stream API.org.opensearch.client.CancellablecreateDataStreamAsync(CreateDataStreamRequest createDataStreamRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.support.master.AcknowledgedResponse> listener) Asynchronously creates a data stream using the Create Data Stream API.dataStreamsStats(DataStreamsStatsRequest dataStreamsStatsRequest, org.opensearch.client.RequestOptions options) Gets statistics about one or more data streams using the Get Data Streams Stats API.org.opensearch.client.CancellabledataStreamsStatsAsync(DataStreamsStatsRequest dataStreamsStatsRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<DataStreamsStatsResponse> listener) Asynchronously gets statistics about one or more data streams using the Get Data Streams Stats API.org.opensearch.action.support.master.AcknowledgedResponsedelete(org.opensearch.action.admin.indices.delete.DeleteIndexRequest deleteIndexRequest, org.opensearch.client.RequestOptions options) Deletes an index using the Delete Index API.deleteAlias(DeleteAliasRequest request, org.opensearch.client.RequestOptions options) Synchronously calls the delete alias apiorg.opensearch.client.CancellabledeleteAliasAsync(DeleteAliasRequest request, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<AcknowledgedResponse> listener) Asynchronously calls the delete alias apiorg.opensearch.client.CancellabledeleteAsync(org.opensearch.action.admin.indices.delete.DeleteIndexRequest deleteIndexRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.support.master.AcknowledgedResponse> listener) Asynchronously deletes an index using the Delete Index API.org.opensearch.action.support.master.AcknowledgedResponsedeleteDataStream(DeleteDataStreamRequest deleteDataStreamRequest, org.opensearch.client.RequestOptions options) Deletes a data stream using the Delete Data Stream API.org.opensearch.client.CancellabledeleteDataStreamAsync(DeleteDataStreamRequest deleteDataStreamRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.support.master.AcknowledgedResponse> listener) Asynchronously deletes a data stream using the Delete Data Stream API.org.opensearch.action.support.master.AcknowledgedResponsedeleteIndexTemplate(DeleteComposableIndexTemplateRequest request, org.opensearch.client.RequestOptions options) Delete an index template using the Index Templates APIorg.opensearch.client.CancellabledeleteIndexTemplateAsync(DeleteComposableIndexTemplateRequest request, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.support.master.AcknowledgedResponse> listener) Asynchronously delete an index template using the Index Templates APIorg.opensearch.action.support.master.AcknowledgedResponsedeleteTemplate(org.opensearch.action.admin.indices.template.delete.DeleteIndexTemplateRequest request, org.opensearch.client.RequestOptions options) Delete an index template using the Index Templates APIorg.opensearch.client.CancellabledeleteTemplateAsync(org.opensearch.action.admin.indices.template.delete.DeleteIndexTemplateRequest request, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.support.master.AcknowledgedResponse> listener) Asynchronously delete an index template using the Index Templates APIbooleanexists(GetIndexRequest request, org.opensearch.client.RequestOptions options) Checks if the index (indices) exists or not.booleanexistsAlias(org.opensearch.action.admin.indices.alias.get.GetAliasesRequest getAliasesRequest, org.opensearch.client.RequestOptions options) Checks if one or more aliases exist using the Aliases Exist API.org.opensearch.client.CancellableexistsAliasAsync(org.opensearch.action.admin.indices.alias.get.GetAliasesRequest getAliasesRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<Boolean> listener) Asynchronously checks if one or more aliases exist using the Aliases Exist API.org.opensearch.client.CancellableexistsAsync(GetIndexRequest request, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<Boolean> listener) Asynchronously checks if the index (indices) exists or not.booleanexistsIndexTemplate(ComposableIndexTemplateExistRequest indexTemplatesRequest, org.opensearch.client.RequestOptions options) Uses the Index Templates API to determine if index templates existorg.opensearch.client.CancellableexistsIndexTemplateAsync(ComposableIndexTemplateExistRequest indexTemplatesExistRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<Boolean> listener) Uses the Index Templates API to determine if index templates existbooleanexistsTemplate(IndexTemplatesExistRequest indexTemplatesRequest, org.opensearch.client.RequestOptions options) Uses the Index Templates API to determine if index templates existorg.opensearch.client.CancellableexistsTemplateAsync(IndexTemplatesExistRequest indexTemplatesExistRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<Boolean> listener) Uses the Index Templates API to determine if index templates existorg.opensearch.action.admin.indices.flush.FlushResponseflush(org.opensearch.action.admin.indices.flush.FlushRequest flushRequest, org.opensearch.client.RequestOptions options) Flush one or more indices using the Flush API.org.opensearch.client.CancellableflushAsync(org.opensearch.action.admin.indices.flush.FlushRequest flushRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.admin.indices.flush.FlushResponse> listener) Asynchronously flush one or more indices using the Flush API.org.opensearch.action.admin.indices.forcemerge.ForceMergeResponseforcemerge(org.opensearch.action.admin.indices.forcemerge.ForceMergeRequest forceMergeRequest, org.opensearch.client.RequestOptions options) Force merge one or more indices using the Force Merge API.org.opensearch.action.admin.indices.forcemerge.ForceMergeResponseforceMerge(org.opensearch.action.admin.indices.forcemerge.ForceMergeRequest forceMergeRequest, org.opensearch.client.RequestOptions options) Deprecated.useforcemerge(ForceMergeRequest, RequestOptions)insteadorg.opensearch.client.CancellableforcemergeAsync(org.opensearch.action.admin.indices.forcemerge.ForceMergeRequest forceMergeRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.admin.indices.forcemerge.ForceMergeResponse> listener) Asynchronously force merge one or more indices using the Force Merge API.org.opensearch.client.CancellableforceMergeAsync(org.opensearch.action.admin.indices.forcemerge.ForceMergeRequest forceMergeRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.admin.indices.forcemerge.ForceMergeResponse> listener) Deprecated.get(GetIndexRequest getIndexRequest, org.opensearch.client.RequestOptions options) Retrieve information about one or more indexesgetAlias(org.opensearch.action.admin.indices.alias.get.GetAliasesRequest getAliasesRequest, org.opensearch.client.RequestOptions options) Gets one or more aliases using the Get Index Aliases API.org.opensearch.client.CancellablegetAliasAsync(org.opensearch.action.admin.indices.alias.get.GetAliasesRequest getAliasesRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<GetAliasesResponse> listener) Asynchronously gets one or more aliases using the Get Index Aliases API.org.opensearch.client.CancellablegetAsync(GetIndexRequest getIndexRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<GetIndexResponse> listener) Retrieve information about one or more indexesgetDataStream(GetDataStreamRequest dataStreamRequest, org.opensearch.client.RequestOptions options) Gets one or more data streams using the Get Data Stream API.org.opensearch.client.CancellablegetDataStreamAsync(GetDataStreamRequest dataStreamRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<GetDataStreamResponse> listener) Asynchronously gets one or more data streams using the Get Data Stream API.getFieldMapping(GetFieldMappingsRequest getFieldMappingsRequest, org.opensearch.client.RequestOptions options) Retrieves the field mappings on an index or indices using the Get Field Mapping API.org.opensearch.client.CancellablegetFieldMappingAsync(GetFieldMappingsRequest getFieldMappingsRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<GetFieldMappingsResponse> listener) Asynchronously retrieves the field mappings on an index or indices using the Get Field Mapping API.getIndexTemplate(GetComposableIndexTemplateRequest getIndexTemplatesRequest, org.opensearch.client.RequestOptions options) Gets index templates using the Index Templates APIgetIndexTemplate(GetIndexTemplatesRequest getIndexTemplatesRequest, org.opensearch.client.RequestOptions options) Gets index templates using the Index Templates APIorg.opensearch.client.CancellablegetIndexTemplateAsync(GetComposableIndexTemplateRequest getIndexTemplatesRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<GetComposableIndexTemplatesResponse> listener) Asynchronously gets index templates using the Index Templates APIorg.opensearch.client.CancellablegetIndexTemplateAsync(GetIndexTemplatesRequest getIndexTemplatesRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<GetIndexTemplatesResponse> listener) Asynchronously gets index templates using the Index Templates APIgetMapping(GetMappingsRequest getMappingsRequest, org.opensearch.client.RequestOptions options) Retrieves the mappings on an index or indices using the Get Mapping API.org.opensearch.client.CancellablegetMappingAsync(GetMappingsRequest getMappingsRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<GetMappingsResponse> listener) Asynchronously retrieves the mappings on an index on indices using the Get Mapping API.org.opensearch.action.admin.indices.settings.get.GetSettingsResponsegetSettings(org.opensearch.action.admin.indices.settings.get.GetSettingsRequest getSettingsRequest, org.opensearch.client.RequestOptions options) Retrieve the settings of one or more indices.org.opensearch.client.CancellablegetSettingsAsync(org.opensearch.action.admin.indices.settings.get.GetSettingsRequest getSettingsRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.admin.indices.settings.get.GetSettingsResponse> listener) Asynchronously retrieve the settings of one or more indices.org.opensearch.action.admin.indices.open.OpenIndexResponseopen(org.opensearch.action.admin.indices.open.OpenIndexRequest openIndexRequest, org.opensearch.client.RequestOptions options) Opens an index using the Open Index API.org.opensearch.client.CancellableopenAsync(org.opensearch.action.admin.indices.open.OpenIndexRequest openIndexRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.admin.indices.open.OpenIndexResponse> listener) Asynchronously opens an index using the Open Index API.org.opensearch.action.support.master.AcknowledgedResponseputIndexTemplate(PutComposableIndexTemplateRequest putIndexTemplateRequest, org.opensearch.client.RequestOptions options) Puts an index template using the Index Templates API.org.opensearch.client.CancellableputIndexTemplateAsync(PutComposableIndexTemplateRequest putIndexTemplateRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.support.master.AcknowledgedResponse> listener) Asynchronously puts an index template using the Index Templates API.org.opensearch.action.support.master.AcknowledgedResponseputMapping(PutMappingRequest putMappingRequest, org.opensearch.client.RequestOptions options) Updates the mappings on an index using the Put Mapping API.org.opensearch.client.CancellableputMappingAsync(PutMappingRequest putMappingRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.support.master.AcknowledgedResponse> listener) Asynchronously updates the mappings on an index using the Put Mapping API.org.opensearch.action.support.master.AcknowledgedResponseputSettings(org.opensearch.action.admin.indices.settings.put.UpdateSettingsRequest updateSettingsRequest, org.opensearch.client.RequestOptions options) Updates specific index level settings using the Update Indices Settings API.org.opensearch.client.CancellableputSettingsAsync(org.opensearch.action.admin.indices.settings.put.UpdateSettingsRequest updateSettingsRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.support.master.AcknowledgedResponse> listener) Asynchronously updates specific index level settings using the Update Indices Settings API.org.opensearch.action.support.master.AcknowledgedResponseputTemplate(PutIndexTemplateRequest putIndexTemplateRequest, org.opensearch.client.RequestOptions options) Puts an index template using the Index Templates API.org.opensearch.client.CancellableputTemplateAsync(PutIndexTemplateRequest putIndexTemplateRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.support.master.AcknowledgedResponse> listener) Asynchronously puts an index template using the Index Templates API.org.opensearch.action.admin.indices.refresh.RefreshResponserefresh(org.opensearch.action.admin.indices.refresh.RefreshRequest refreshRequest, org.opensearch.client.RequestOptions options) Refresh one or more indices using the Refresh API.org.opensearch.client.CancellablerefreshAsync(org.opensearch.action.admin.indices.refresh.RefreshRequest refreshRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.admin.indices.refresh.RefreshResponse> listener) Asynchronously refresh one or more indices using the Refresh API.rollover(RolloverRequest rolloverRequest, org.opensearch.client.RequestOptions options) Rolls over an index using the Rollover Index API.org.opensearch.client.CancellablerolloverAsync(RolloverRequest rolloverRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<RolloverResponse> listener) Asynchronously rolls over an index using the Rollover Index API.org.opensearch.action.admin.indices.shrink.ResizeResponseshrink(org.opensearch.action.admin.indices.shrink.ResizeRequest resizeRequest, org.opensearch.client.RequestOptions options) Deprecated.shrink(ResizeRequest resizeRequest, org.opensearch.client.RequestOptions options) Shrinks an index using the Shrink Index API.org.opensearch.client.CancellableshrinkAsync(org.opensearch.action.admin.indices.shrink.ResizeRequest resizeRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.admin.indices.shrink.ResizeResponse> listener) Deprecated.org.opensearch.client.CancellableshrinkAsync(ResizeRequest resizeRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<ResizeResponse> listener) Asynchronously shrinks an index using the Shrink index API.simulateIndexTemplate(SimulateIndexTemplateRequest simulateIndexTemplateRequest, org.opensearch.client.RequestOptions options) Simulates matching index name against the existing index templates in the system.org.opensearch.client.CancellablesimulateIndexTemplateAsync(SimulateIndexTemplateRequest simulateIndexTemplateRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<SimulateIndexTemplateResponse> listener) Asynchronously simulates matching index name against the existing index templates in the system.org.opensearch.action.admin.indices.shrink.ResizeResponsesplit(org.opensearch.action.admin.indices.shrink.ResizeRequest resizeRequest, org.opensearch.client.RequestOptions options) Deprecated.split(ResizeRequest resizeRequest, org.opensearch.client.RequestOptions options) Splits an index using the Split Index API.org.opensearch.client.CancellablesplitAsync(org.opensearch.action.admin.indices.shrink.ResizeRequest resizeRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.admin.indices.shrink.ResizeResponse> listener) Deprecated.org.opensearch.client.CancellablesplitAsync(ResizeRequest resizeRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<ResizeResponse> listener) Asynchronously splits an index using the Split Index API.org.opensearch.action.support.master.AcknowledgedResponseupdateAliases(org.opensearch.action.admin.indices.alias.IndicesAliasesRequest indicesAliasesRequest, org.opensearch.client.RequestOptions options) Updates aliases using the Index Aliases API.org.opensearch.client.CancellableupdateAliasesAsync(org.opensearch.action.admin.indices.alias.IndicesAliasesRequest indicesAliasesRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.support.master.AcknowledgedResponse> listener) Asynchronously updates aliases using the Index Aliases API.org.opensearch.action.admin.indices.validate.query.ValidateQueryResponsevalidateQuery(org.opensearch.action.admin.indices.validate.query.ValidateQueryRequest validateQueryRequest, org.opensearch.client.RequestOptions options) Validate a potentially expensive query without executing it.org.opensearch.client.CancellablevalidateQueryAsync(org.opensearch.action.admin.indices.validate.query.ValidateQueryRequest validateQueryRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.admin.indices.validate.query.ValidateQueryResponse> listener) Asynchronously validate a potentially expensive query without executing it.
-
Method Details
-
delete
public org.opensearch.action.support.master.AcknowledgedResponse delete(org.opensearch.action.admin.indices.delete.DeleteIndexRequest deleteIndexRequest, org.opensearch.client.RequestOptions options) throws IOException Deletes an index using the Delete Index API.- Parameters:
deleteIndexRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
deleteAsync
public org.opensearch.client.Cancellable deleteAsync(org.opensearch.action.admin.indices.delete.DeleteIndexRequest deleteIndexRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.support.master.AcknowledgedResponse> listener) Asynchronously deletes an index using the Delete Index API.- Parameters:
deleteIndexRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
create
public CreateIndexResponse create(CreateIndexRequest createIndexRequest, org.opensearch.client.RequestOptions options) throws IOException Creates an index using the Create Index API.- Parameters:
createIndexRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
createAsync
public org.opensearch.client.Cancellable createAsync(CreateIndexRequest createIndexRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<CreateIndexResponse> listener) Asynchronously creates an index using the Create Index API.- Parameters:
createIndexRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
createDataStream
public org.opensearch.action.support.master.AcknowledgedResponse createDataStream(CreateDataStreamRequest createDataStreamRequest, org.opensearch.client.RequestOptions options) throws IOException Creates a data stream using the Create Data Stream API.- Parameters:
createDataStreamRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
createDataStreamAsync
public org.opensearch.client.Cancellable createDataStreamAsync(CreateDataStreamRequest createDataStreamRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.support.master.AcknowledgedResponse> listener) Asynchronously creates a data stream using the Create Data Stream API.- Parameters:
createDataStreamRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
deleteDataStream
public org.opensearch.action.support.master.AcknowledgedResponse deleteDataStream(DeleteDataStreamRequest deleteDataStreamRequest, org.opensearch.client.RequestOptions options) throws IOException Deletes a data stream using the Delete Data Stream API.- Parameters:
deleteDataStreamRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
deleteDataStreamAsync
public org.opensearch.client.Cancellable deleteDataStreamAsync(DeleteDataStreamRequest deleteDataStreamRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.support.master.AcknowledgedResponse> listener) Asynchronously deletes a data stream using the Delete Data Stream API.- Parameters:
deleteDataStreamRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getDataStream
public GetDataStreamResponse getDataStream(GetDataStreamRequest dataStreamRequest, org.opensearch.client.RequestOptions options) throws IOException Gets one or more data streams using the Get Data Stream API.- Parameters:
dataStreamRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
getDataStreamAsync
public org.opensearch.client.Cancellable getDataStreamAsync(GetDataStreamRequest dataStreamRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<GetDataStreamResponse> listener) Asynchronously gets one or more data streams using the Get Data Stream API.- Parameters:
dataStreamRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
dataStreamsStats
public DataStreamsStatsResponse dataStreamsStats(DataStreamsStatsRequest dataStreamsStatsRequest, org.opensearch.client.RequestOptions options) throws IOException Gets statistics about one or more data streams using the Get Data Streams Stats API.- Parameters:
dataStreamsStatsRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
dataStreamsStatsAsync
public org.opensearch.client.Cancellable dataStreamsStatsAsync(DataStreamsStatsRequest dataStreamsStatsRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<DataStreamsStatsResponse> listener) Asynchronously gets statistics about one or more data streams using the Get Data Streams Stats API.- Parameters:
dataStreamsStatsRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
putMapping
public org.opensearch.action.support.master.AcknowledgedResponse putMapping(PutMappingRequest putMappingRequest, org.opensearch.client.RequestOptions options) throws IOException Updates the mappings on an index using the Put Mapping API.- Parameters:
putMappingRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
putMappingAsync
public org.opensearch.client.Cancellable putMappingAsync(PutMappingRequest putMappingRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.support.master.AcknowledgedResponse> listener) Asynchronously updates the mappings on an index using the Put Mapping API.- Parameters:
putMappingRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getMapping
public GetMappingsResponse getMapping(GetMappingsRequest getMappingsRequest, org.opensearch.client.RequestOptions options) throws IOException Retrieves the mappings on an index or indices using the Get Mapping API.- Parameters:
getMappingsRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
getMappingAsync
public org.opensearch.client.Cancellable getMappingAsync(GetMappingsRequest getMappingsRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<GetMappingsResponse> listener) Asynchronously retrieves the mappings on an index on indices using the Get Mapping API.- Parameters:
getMappingsRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getFieldMapping
public GetFieldMappingsResponse getFieldMapping(GetFieldMappingsRequest getFieldMappingsRequest, org.opensearch.client.RequestOptions options) throws IOException Retrieves the field mappings on an index or indices using the Get Field Mapping API.- Parameters:
getFieldMappingsRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
getFieldMappingAsync
public org.opensearch.client.Cancellable getFieldMappingAsync(GetFieldMappingsRequest getFieldMappingsRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<GetFieldMappingsResponse> listener) Asynchronously retrieves the field mappings on an index or indices using the Get Field Mapping API.- Parameters:
getFieldMappingsRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
updateAliases
public org.opensearch.action.support.master.AcknowledgedResponse updateAliases(org.opensearch.action.admin.indices.alias.IndicesAliasesRequest indicesAliasesRequest, org.opensearch.client.RequestOptions options) throws IOException Updates aliases using the Index Aliases API.- Parameters:
indicesAliasesRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
updateAliasesAsync
public org.opensearch.client.Cancellable updateAliasesAsync(org.opensearch.action.admin.indices.alias.IndicesAliasesRequest indicesAliasesRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.support.master.AcknowledgedResponse> listener) Asynchronously updates aliases using the Index Aliases API.- Parameters:
indicesAliasesRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
open
public org.opensearch.action.admin.indices.open.OpenIndexResponse open(org.opensearch.action.admin.indices.open.OpenIndexRequest openIndexRequest, org.opensearch.client.RequestOptions options) throws IOException Opens an index using the Open Index API.- Parameters:
openIndexRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
openAsync
public org.opensearch.client.Cancellable openAsync(org.opensearch.action.admin.indices.open.OpenIndexRequest openIndexRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.admin.indices.open.OpenIndexResponse> listener) Asynchronously opens an index using the Open Index API.- Parameters:
openIndexRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
close
public CloseIndexResponse close(CloseIndexRequest closeIndexRequest, org.opensearch.client.RequestOptions options) throws IOException Closes an index using the Close Index API.- Parameters:
closeIndexRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
closeAsync
public org.opensearch.client.Cancellable closeAsync(CloseIndexRequest closeIndexRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<CloseIndexResponse> listener) Asynchronously closes an index using the Close Index API.- Parameters:
closeIndexRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
existsAlias
public boolean existsAlias(org.opensearch.action.admin.indices.alias.get.GetAliasesRequest getAliasesRequest, org.opensearch.client.RequestOptions options) throws IOException Checks if one or more aliases exist using the Aliases Exist API.- Parameters:
getAliasesRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request
-
existsAliasAsync
public org.opensearch.client.Cancellable existsAliasAsync(org.opensearch.action.admin.indices.alias.get.GetAliasesRequest getAliasesRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<Boolean> listener) Asynchronously checks if one or more aliases exist using the Aliases Exist API.- Parameters:
getAliasesRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
refresh
public org.opensearch.action.admin.indices.refresh.RefreshResponse refresh(org.opensearch.action.admin.indices.refresh.RefreshRequest refreshRequest, org.opensearch.client.RequestOptions options) throws IOException Refresh one or more indices using the Refresh API.- Parameters:
refreshRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
refreshAsync
public org.opensearch.client.Cancellable refreshAsync(org.opensearch.action.admin.indices.refresh.RefreshRequest refreshRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.admin.indices.refresh.RefreshResponse> listener) Asynchronously refresh one or more indices using the Refresh API.- Parameters:
refreshRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
flush
public org.opensearch.action.admin.indices.flush.FlushResponse flush(org.opensearch.action.admin.indices.flush.FlushRequest flushRequest, org.opensearch.client.RequestOptions options) throws IOException Flush one or more indices using the Flush API.- Parameters:
flushRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
flushAsync
public org.opensearch.client.Cancellable flushAsync(org.opensearch.action.admin.indices.flush.FlushRequest flushRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.admin.indices.flush.FlushResponse> listener) Asynchronously flush one or more indices using the Flush API.- Parameters:
flushRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getSettings
public org.opensearch.action.admin.indices.settings.get.GetSettingsResponse getSettings(org.opensearch.action.admin.indices.settings.get.GetSettingsRequest getSettingsRequest, org.opensearch.client.RequestOptions options) throws IOException Retrieve the settings of one or more indices.- Parameters:
getSettingsRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
getSettingsAsync
public org.opensearch.client.Cancellable getSettingsAsync(org.opensearch.action.admin.indices.settings.get.GetSettingsRequest getSettingsRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.admin.indices.settings.get.GetSettingsResponse> listener) Asynchronously retrieve the settings of one or more indices.- Parameters:
getSettingsRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
get
public GetIndexResponse get(GetIndexRequest getIndexRequest, org.opensearch.client.RequestOptions options) throws IOException Retrieve information about one or more indexes- Parameters:
getIndexRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
getAsync
public org.opensearch.client.Cancellable getAsync(GetIndexRequest getIndexRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<GetIndexResponse> listener) Retrieve information about one or more indexes- Parameters:
getIndexRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
forceMerge
@Deprecated public org.opensearch.action.admin.indices.forcemerge.ForceMergeResponse forceMerge(org.opensearch.action.admin.indices.forcemerge.ForceMergeRequest forceMergeRequest, org.opensearch.client.RequestOptions options) throws IOException Deprecated.useforcemerge(ForceMergeRequest, RequestOptions)insteadForce merge one or more indices using the Force Merge API.- Parameters:
forceMergeRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
forcemerge
public org.opensearch.action.admin.indices.forcemerge.ForceMergeResponse forcemerge(org.opensearch.action.admin.indices.forcemerge.ForceMergeRequest forceMergeRequest, org.opensearch.client.RequestOptions options) throws IOException Force merge one or more indices using the Force Merge API.- Parameters:
forceMergeRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
forceMergeAsync
@Deprecated public org.opensearch.client.Cancellable forceMergeAsync(org.opensearch.action.admin.indices.forcemerge.ForceMergeRequest forceMergeRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.admin.indices.forcemerge.ForceMergeResponse> listener) Deprecated.Asynchronously force merge one or more indices using the Force Merge API.- Parameters:
forceMergeRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
forcemergeAsync
public org.opensearch.client.Cancellable forcemergeAsync(org.opensearch.action.admin.indices.forcemerge.ForceMergeRequest forceMergeRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.admin.indices.forcemerge.ForceMergeResponse> listener) Asynchronously force merge one or more indices using the Force Merge API.- Parameters:
forceMergeRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
clearCache
public org.opensearch.action.admin.indices.cache.clear.ClearIndicesCacheResponse clearCache(org.opensearch.action.admin.indices.cache.clear.ClearIndicesCacheRequest clearIndicesCacheRequest, org.opensearch.client.RequestOptions options) throws IOException Clears the cache of one or more indices using the Clear Cache API.- Parameters:
clearIndicesCacheRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
clearCacheAsync
public org.opensearch.client.Cancellable clearCacheAsync(org.opensearch.action.admin.indices.cache.clear.ClearIndicesCacheRequest clearIndicesCacheRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.admin.indices.cache.clear.ClearIndicesCacheResponse> listener) Asynchronously clears the cache of one or more indices using the Clear Cache API.- Parameters:
clearIndicesCacheRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
exists
public boolean exists(GetIndexRequest request, org.opensearch.client.RequestOptions options) throws IOException Checks if the index (indices) exists or not.- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request
-
existsAsync
public org.opensearch.client.Cancellable existsAsync(GetIndexRequest request, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<Boolean> listener) Asynchronously checks if the index (indices) exists or not.- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
shrink
public ResizeResponse shrink(ResizeRequest resizeRequest, org.opensearch.client.RequestOptions options) throws IOException Shrinks an index using the Shrink Index API.- Parameters:
resizeRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
shrink
@Deprecated public org.opensearch.action.admin.indices.shrink.ResizeResponse shrink(org.opensearch.action.admin.indices.shrink.ResizeRequest resizeRequest, org.opensearch.client.RequestOptions options) throws IOException Deprecated.Shrinks an index using the Shrink Index API.- Parameters:
resizeRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
shrinkAsync
public org.opensearch.client.Cancellable shrinkAsync(ResizeRequest resizeRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<ResizeResponse> listener) Asynchronously shrinks an index using the Shrink index API.- Parameters:
resizeRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
shrinkAsync
@Deprecated public org.opensearch.client.Cancellable shrinkAsync(org.opensearch.action.admin.indices.shrink.ResizeRequest resizeRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.admin.indices.shrink.ResizeResponse> listener) Deprecated.Asynchronously shrinks an index using the Shrink index API.- Parameters:
resizeRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
split
public ResizeResponse split(ResizeRequest resizeRequest, org.opensearch.client.RequestOptions options) throws IOException Splits an index using the Split Index API.- Parameters:
resizeRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
split
@Deprecated public org.opensearch.action.admin.indices.shrink.ResizeResponse split(org.opensearch.action.admin.indices.shrink.ResizeRequest resizeRequest, org.opensearch.client.RequestOptions options) throws IOException Deprecated.Splits an index using the Split Index API.- Parameters:
resizeRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
splitAsync
public org.opensearch.client.Cancellable splitAsync(ResizeRequest resizeRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<ResizeResponse> listener) Asynchronously splits an index using the Split Index API.- Parameters:
resizeRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
splitAsync
@Deprecated public org.opensearch.client.Cancellable splitAsync(org.opensearch.action.admin.indices.shrink.ResizeRequest resizeRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.admin.indices.shrink.ResizeResponse> listener) Deprecated.Asynchronously splits an index using the Split Index API.- Parameters:
resizeRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
clone
public ResizeResponse clone(ResizeRequest resizeRequest, org.opensearch.client.RequestOptions options) throws IOException Clones an index using the Clone Index API.- Parameters:
resizeRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
clone
@Deprecated public org.opensearch.action.admin.indices.shrink.ResizeResponse clone(org.opensearch.action.admin.indices.shrink.ResizeRequest resizeRequest, org.opensearch.client.RequestOptions options) throws IOException Deprecated.Clones an index using the Clone Index API.- Parameters:
resizeRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
cloneAsync
public org.opensearch.client.Cancellable cloneAsync(ResizeRequest resizeRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<ResizeResponse> listener) Asynchronously clones an index using the Clone Index API.- Parameters:
resizeRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
cloneAsync
@Deprecated public org.opensearch.client.Cancellable cloneAsync(org.opensearch.action.admin.indices.shrink.ResizeRequest resizeRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.admin.indices.shrink.ResizeResponse> listener) Deprecated.Asynchronously clones an index using the Clone Index API.- Parameters:
resizeRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
rollover
public RolloverResponse rollover(RolloverRequest rolloverRequest, org.opensearch.client.RequestOptions options) throws IOException Rolls over an index using the Rollover Index API.- Parameters:
rolloverRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
rolloverAsync
public org.opensearch.client.Cancellable rolloverAsync(RolloverRequest rolloverRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<RolloverResponse> listener) Asynchronously rolls over an index using the Rollover Index API.- Parameters:
rolloverRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getAlias
public GetAliasesResponse getAlias(org.opensearch.action.admin.indices.alias.get.GetAliasesRequest getAliasesRequest, org.opensearch.client.RequestOptions options) throws IOException Gets one or more aliases using the Get Index Aliases API.- Parameters:
getAliasesRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
getAliasAsync
public org.opensearch.client.Cancellable getAliasAsync(org.opensearch.action.admin.indices.alias.get.GetAliasesRequest getAliasesRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<GetAliasesResponse> listener) Asynchronously gets one or more aliases using the Get Index Aliases API.- Parameters:
getAliasesRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
putSettings
public org.opensearch.action.support.master.AcknowledgedResponse putSettings(org.opensearch.action.admin.indices.settings.put.UpdateSettingsRequest updateSettingsRequest, org.opensearch.client.RequestOptions options) throws IOException Updates specific index level settings using the Update Indices Settings API.- Parameters:
updateSettingsRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
putSettingsAsync
public org.opensearch.client.Cancellable putSettingsAsync(org.opensearch.action.admin.indices.settings.put.UpdateSettingsRequest updateSettingsRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.support.master.AcknowledgedResponse> listener) Asynchronously updates specific index level settings using the Update Indices Settings API.- Parameters:
updateSettingsRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
putTemplate
public org.opensearch.action.support.master.AcknowledgedResponse putTemplate(PutIndexTemplateRequest putIndexTemplateRequest, org.opensearch.client.RequestOptions options) throws IOException Puts an index template using the Index Templates API.- Parameters:
putIndexTemplateRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
putTemplateAsync
public org.opensearch.client.Cancellable putTemplateAsync(PutIndexTemplateRequest putIndexTemplateRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.support.master.AcknowledgedResponse> listener) Asynchronously puts an index template using the Index Templates API.- Parameters:
putIndexTemplateRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
putIndexTemplate
public org.opensearch.action.support.master.AcknowledgedResponse putIndexTemplate(PutComposableIndexTemplateRequest putIndexTemplateRequest, org.opensearch.client.RequestOptions options) throws IOException Puts an index template using the Index Templates API.- Parameters:
putIndexTemplateRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
putIndexTemplateAsync
public org.opensearch.client.Cancellable putIndexTemplateAsync(PutComposableIndexTemplateRequest putIndexTemplateRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.support.master.AcknowledgedResponse> listener) Asynchronously puts an index template using the Index Templates API.- Parameters:
putIndexTemplateRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
simulateIndexTemplate
public SimulateIndexTemplateResponse simulateIndexTemplate(SimulateIndexTemplateRequest simulateIndexTemplateRequest, org.opensearch.client.RequestOptions options) throws IOException Simulates matching index name against the existing index templates in the system.- Parameters:
simulateIndexTemplateRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
simulateIndexTemplateAsync
public org.opensearch.client.Cancellable simulateIndexTemplateAsync(SimulateIndexTemplateRequest simulateIndexTemplateRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<SimulateIndexTemplateResponse> listener) Asynchronously simulates matching index name against the existing index templates in the system.- Parameters:
simulateIndexTemplateRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
validateQuery
public org.opensearch.action.admin.indices.validate.query.ValidateQueryResponse validateQuery(org.opensearch.action.admin.indices.validate.query.ValidateQueryRequest validateQueryRequest, org.opensearch.client.RequestOptions options) throws IOException Validate a potentially expensive query without executing it.- Parameters:
validateQueryRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
validateQueryAsync
public org.opensearch.client.Cancellable validateQueryAsync(org.opensearch.action.admin.indices.validate.query.ValidateQueryRequest validateQueryRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.admin.indices.validate.query.ValidateQueryResponse> listener) Asynchronously validate a potentially expensive query without executing it.- Parameters:
validateQueryRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getIndexTemplate
public GetComposableIndexTemplatesResponse getIndexTemplate(GetComposableIndexTemplateRequest getIndexTemplatesRequest, org.opensearch.client.RequestOptions options) throws IOException Gets index templates using the Index Templates API- Parameters:
getIndexTemplatesRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
getIndexTemplateAsync
public org.opensearch.client.Cancellable getIndexTemplateAsync(GetComposableIndexTemplateRequest getIndexTemplatesRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<GetComposableIndexTemplatesResponse> listener) Asynchronously gets index templates using the Index Templates API- Parameters:
getIndexTemplatesRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
getIndexTemplate
public GetIndexTemplatesResponse getIndexTemplate(GetIndexTemplatesRequest getIndexTemplatesRequest, org.opensearch.client.RequestOptions options) throws IOException Gets index templates using the Index Templates API- Parameters:
getIndexTemplatesRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- the response
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
getIndexTemplateAsync
public org.opensearch.client.Cancellable getIndexTemplateAsync(GetIndexTemplatesRequest getIndexTemplatesRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<GetIndexTemplatesResponse> listener) Asynchronously gets index templates using the Index Templates API- Parameters:
getIndexTemplatesRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
existsTemplate
public boolean existsTemplate(IndexTemplatesExistRequest indexTemplatesRequest, org.opensearch.client.RequestOptions options) throws IOException Uses the Index Templates API to determine if index templates exist- Parameters:
indexTemplatesRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- true if any index templates in the request exist, false otherwise
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
existsTemplateAsync
public org.opensearch.client.Cancellable existsTemplateAsync(IndexTemplatesExistRequest indexTemplatesExistRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<Boolean> listener) Uses the Index Templates API to determine if index templates exist- Parameters:
indexTemplatesExistRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion. The listener will be called with the valuetrue- Returns:
- cancellable that may be used to cancel the request
-
existsIndexTemplate
public boolean existsIndexTemplate(ComposableIndexTemplateExistRequest indexTemplatesRequest, org.opensearch.client.RequestOptions options) throws IOException Uses the Index Templates API to determine if index templates exist- Parameters:
indexTemplatesRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Returns:
- true if any index templates in the request exist, false otherwise
- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
existsIndexTemplateAsync
public org.opensearch.client.Cancellable existsIndexTemplateAsync(ComposableIndexTemplateExistRequest indexTemplatesExistRequest, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<Boolean> listener) Uses the Index Templates API to determine if index templates exist- Parameters:
indexTemplatesExistRequest- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion. The listener will be called with the valuetrue- Returns:
- cancellable that may be used to cancel the request
-
analyze
public AnalyzeResponse analyze(AnalyzeRequest request, org.opensearch.client.RequestOptions options) throws IOException Calls the analyze API- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Throws:
IOException
-
analyzeAsync
public org.opensearch.client.Cancellable analyzeAsync(AnalyzeRequest request, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<AnalyzeResponse> listener) Asynchronously calls the analyze API- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
deleteTemplate
public org.opensearch.action.support.master.AcknowledgedResponse deleteTemplate(org.opensearch.action.admin.indices.template.delete.DeleteIndexTemplateRequest request, org.opensearch.client.RequestOptions options) throws IOException Delete an index template using the Index Templates API- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
deleteTemplateAsync
public org.opensearch.client.Cancellable deleteTemplateAsync(org.opensearch.action.admin.indices.template.delete.DeleteIndexTemplateRequest request, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.support.master.AcknowledgedResponse> listener) Asynchronously delete an index template using the Index Templates API- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
deleteIndexTemplate
public org.opensearch.action.support.master.AcknowledgedResponse deleteIndexTemplate(DeleteComposableIndexTemplateRequest request, org.opensearch.client.RequestOptions options) throws IOException Delete an index template using the Index Templates API- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Throws:
IOException- in case there is a problem sending the request or parsing back the response
-
deleteIndexTemplateAsync
public org.opensearch.client.Cancellable deleteIndexTemplateAsync(DeleteComposableIndexTemplateRequest request, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<org.opensearch.action.support.master.AcknowledgedResponse> listener) Asynchronously delete an index template using the Index Templates API- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
deleteAlias
public AcknowledgedResponse deleteAlias(DeleteAliasRequest request, org.opensearch.client.RequestOptions options) throws IOException Synchronously calls the delete alias api- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customized- Throws:
IOException
-
deleteAliasAsync
public org.opensearch.client.Cancellable deleteAliasAsync(DeleteAliasRequest request, org.opensearch.client.RequestOptions options, org.opensearch.core.action.ActionListener<AcknowledgedResponse> listener) Asynchronously calls the delete alias api- Parameters:
request- the requestoptions- the request options (e.g. headers), useRequestOptions.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion- Returns:
- cancellable that may be used to cancel the request
-
clone(ResizeRequest, RequestOptions)