Package org.elasticsearch.client
Class IndicesClient
- java.lang.Object
-
- org.elasticsearch.client.IndicesClient
-
public final class IndicesClient extends java.lang.Object
A wrapper for theRestHighLevelClient
that provides methods for accessing the Indices API.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AnalyzeResponse
analyze(AnalyzeRequest request, RequestOptions options)
Calls the analyze API See Analyze API on elastic.covoid
analyzeAsync(AnalyzeRequest request, RequestOptions options, ActionListener<AnalyzeResponse> listener)
Asynchronously calls the analyze API See Analyze API on elastic.coClearIndicesCacheResponse
clearCache(ClearIndicesCacheRequest clearIndicesCacheRequest, org.apache.http.Header... headers)
Deprecated.ClearIndicesCacheResponse
clearCache(ClearIndicesCacheRequest clearIndicesCacheRequest, RequestOptions options)
Clears the cache of one or more indices using the Clear Cache API.void
clearCacheAsync(ClearIndicesCacheRequest clearIndicesCacheRequest, ActionListener<ClearIndicesCacheResponse> listener, org.apache.http.Header... headers)
Deprecated.void
clearCacheAsync(ClearIndicesCacheRequest clearIndicesCacheRequest, RequestOptions options, ActionListener<ClearIndicesCacheResponse> listener)
Asynchronously clears the cache of one or more indices using the Clear Cache API.AcknowledgedResponse
close(CloseIndexRequest closeIndexRequest, org.apache.http.Header... headers)
Deprecated.AcknowledgedResponse
close(CloseIndexRequest closeIndexRequest, RequestOptions options)
Closes an index using the Close Index API.void
closeAsync(CloseIndexRequest closeIndexRequest, ActionListener<AcknowledgedResponse> listener, org.apache.http.Header... headers)
Deprecated.void
closeAsync(CloseIndexRequest closeIndexRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener)
Asynchronously closes an index using the Close Index API.CreateIndexResponse
create(CreateIndexRequest createIndexRequest, org.apache.http.Header... headers)
Deprecated.CreateIndexResponse
create(CreateIndexRequest createIndexRequest, RequestOptions options)
Creates an index using the Create Index API.void
createAsync(CreateIndexRequest createIndexRequest, ActionListener<CreateIndexResponse> listener, org.apache.http.Header... headers)
Deprecated.void
createAsync(CreateIndexRequest createIndexRequest, RequestOptions options, ActionListener<CreateIndexResponse> listener)
Asynchronously creates an index using the Create Index API.AcknowledgedResponse
delete(DeleteIndexRequest deleteIndexRequest, org.apache.http.Header... headers)
Deprecated.AcknowledgedResponse
delete(DeleteIndexRequest deleteIndexRequest, RequestOptions options)
Deletes an index using the Delete Index API.void
deleteAsync(DeleteIndexRequest deleteIndexRequest, ActionListener<AcknowledgedResponse> listener, org.apache.http.Header... headers)
Deprecated.void
deleteAsync(DeleteIndexRequest deleteIndexRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener)
Asynchronously deletes an index using the Delete Index API.AcknowledgedResponse
deleteTemplate(DeleteIndexTemplateRequest request, RequestOptions options)
Delete an index template using the Index Templates API See Index Templates API on elastic.covoid
deleteTemplateAsync(DeleteIndexTemplateRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)
Asynchronously delete an index template using the Index Templates API See Index Templates API on elastic.coboolean
exists(GetIndexRequest request, org.apache.http.Header... headers)
Deprecated.boolean
exists(GetIndexRequest request, RequestOptions options)
Checks if the index (indices) exists or not.boolean
existsAlias(GetAliasesRequest getAliasesRequest, org.apache.http.Header... headers)
Deprecated.boolean
existsAlias(GetAliasesRequest getAliasesRequest, RequestOptions options)
Checks if one or more aliases exist using the Aliases Exist API.void
existsAliasAsync(GetAliasesRequest getAliasesRequest, ActionListener<java.lang.Boolean> listener, org.apache.http.Header... headers)
Deprecated.void
existsAliasAsync(GetAliasesRequest getAliasesRequest, RequestOptions options, ActionListener<java.lang.Boolean> listener)
Asynchronously checks if one or more aliases exist using the Aliases Exist API.void
existsAsync(GetIndexRequest request, ActionListener<java.lang.Boolean> listener, org.apache.http.Header... headers)
Deprecated.void
existsAsync(GetIndexRequest request, RequestOptions options, ActionListener<java.lang.Boolean> listener)
Asynchronously checks if the index (indices) exists or not.boolean
existsTemplate(IndexTemplatesExistRequest indexTemplatesRequest, RequestOptions options)
Uses the Index Templates API to determine if index templates existvoid
existsTemplateAsync(IndexTemplatesExistRequest indexTemplatesExistRequest, RequestOptions options, ActionListener<java.lang.Boolean> listener)
Uses the Index Templates API to determine if index templates existFlushResponse
flush(FlushRequest flushRequest, org.apache.http.Header... headers)
Deprecated.FlushResponse
flush(FlushRequest flushRequest, RequestOptions options)
Flush one or more indices using the Flush API.void
flushAsync(FlushRequest flushRequest, ActionListener<FlushResponse> listener, org.apache.http.Header... headers)
Deprecated.void
flushAsync(FlushRequest flushRequest, RequestOptions options, ActionListener<FlushResponse> listener)
Asynchronously flush one or more indices using the Flush API.SyncedFlushResponse
flushSynced(SyncedFlushRequest syncedFlushRequest, RequestOptions options)
Initiate a synced flush manually using the synced flush API.void
flushSyncedAsync(SyncedFlushRequest syncedFlushRequest, RequestOptions options, ActionListener<SyncedFlushResponse> listener)
Asynchronously initiate a synced flush manually using the synced flush API.ForceMergeResponse
forcemerge(ForceMergeRequest forceMergeRequest, RequestOptions options)
Force merge one or more indices using the Force Merge API.ForceMergeResponse
forceMerge(ForceMergeRequest forceMergeRequest, org.apache.http.Header... headers)
Deprecated.ForceMergeResponse
forceMerge(ForceMergeRequest forceMergeRequest, RequestOptions options)
Deprecated.useforcemerge(ForceMergeRequest, RequestOptions)
insteadvoid
forcemergeAsync(ForceMergeRequest forceMergeRequest, RequestOptions options, ActionListener<ForceMergeResponse> listener)
Asynchronously force merge one or more indices using the Force Merge API.void
forceMergeAsync(ForceMergeRequest forceMergeRequest, ActionListener<ForceMergeResponse> listener, org.apache.http.Header... headers)
Deprecated.void
forceMergeAsync(ForceMergeRequest forceMergeRequest, RequestOptions options, ActionListener<ForceMergeResponse> listener)
Deprecated.ShardsAcknowledgedResponse
freeze(FreezeIndexRequest request, RequestOptions options)
Synchronously calls the _freeze APIvoid
freezeAsync(FreezeIndexRequest request, RequestOptions options, ActionListener<ShardsAcknowledgedResponse> listener)
Asynchronously calls the _freeze APIGetIndexResponse
get(GetIndexRequest getIndexRequest, RequestOptions options)
Retrieve information about one or more indexes See Indices Get Index API on elastic.coGetAliasesResponse
getAlias(GetAliasesRequest getAliasesRequest, RequestOptions options)
Gets one or more aliases using the Get Index Aliases API.void
getAliasAsync(GetAliasesRequest getAliasesRequest, RequestOptions options, ActionListener<GetAliasesResponse> listener)
Asynchronously gets one or more aliases using the Get Index Aliases API.void
getAsync(GetIndexRequest getIndexRequest, RequestOptions options, ActionListener<GetIndexResponse> listener)
Retrieve information about one or more indexes See Indices Get Index API on elastic.coGetFieldMappingsResponse
getFieldMapping(GetFieldMappingsRequest getFieldMappingsRequest, RequestOptions options)
Retrieves the field mappings on an index or indices using the Get Field Mapping API.void
getFieldMappingAsync(GetFieldMappingsRequest getFieldMappingsRequest, RequestOptions options, ActionListener<GetFieldMappingsResponse> listener)
Asynchronously retrieves the field mappings on an index on indices using the Get Field Mapping API.GetMappingsResponse
getMapping(GetMappingsRequest getMappingsRequest, RequestOptions options)
Retrieves the mappings on an index or indices using the Get Mapping API.void
getMappingAsync(GetMappingsRequest getMappingsRequest, RequestOptions options, ActionListener<GetMappingsResponse> listener)
Asynchronously retrieves the mappings on an index on indices using the Get Mapping API.GetSettingsResponse
getSettings(GetSettingsRequest getSettingsRequest, RequestOptions options)
Retrieve the settings of one or more indices.void
getSettingsAsync(GetSettingsRequest getSettingsRequest, RequestOptions options, ActionListener<GetSettingsResponse> listener)
Asynchronously retrieve the settings of one or more indices.GetIndexTemplatesResponse
getTemplate(GetIndexTemplatesRequest getIndexTemplatesRequest, RequestOptions options)
Gets index templates using the Index Templates API See Index Templates API on elastic.covoid
getTemplateAsync(GetIndexTemplatesRequest getIndexTemplatesRequest, RequestOptions options, ActionListener<GetIndexTemplatesResponse> listener)
Asynchronously gets index templates using the Index Templates API See Index Templates API on elastic.coOpenIndexResponse
open(OpenIndexRequest openIndexRequest, org.apache.http.Header... headers)
Deprecated.OpenIndexResponse
open(OpenIndexRequest openIndexRequest, RequestOptions options)
Opens an index using the Open Index API.void
openAsync(OpenIndexRequest openIndexRequest, ActionListener<OpenIndexResponse> listener, org.apache.http.Header... headers)
Deprecated.void
openAsync(OpenIndexRequest openIndexRequest, RequestOptions options, ActionListener<OpenIndexResponse> listener)
Asynchronously opens an index using the Open Index API.AcknowledgedResponse
putMapping(PutMappingRequest putMappingRequest, org.apache.http.Header... headers)
Deprecated.AcknowledgedResponse
putMapping(PutMappingRequest putMappingRequest, RequestOptions options)
Updates the mappings on an index using the Put Mapping API.void
putMappingAsync(PutMappingRequest putMappingRequest, ActionListener<AcknowledgedResponse> listener, org.apache.http.Header... headers)
Deprecated.void
putMappingAsync(PutMappingRequest putMappingRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener)
Asynchronously updates the mappings on an index using the Put Mapping API.AcknowledgedResponse
putSettings(UpdateSettingsRequest updateSettingsRequest, org.apache.http.Header... headers)
Deprecated.AcknowledgedResponse
putSettings(UpdateSettingsRequest updateSettingsRequest, RequestOptions options)
Updates specific index level settings using the Update Indices Settings API.void
putSettingsAsync(UpdateSettingsRequest updateSettingsRequest, ActionListener<AcknowledgedResponse> listener, org.apache.http.Header... headers)
Deprecated.void
putSettingsAsync(UpdateSettingsRequest updateSettingsRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener)
Asynchronously updates specific index level settings using the Update Indices Settings API.AcknowledgedResponse
putTemplate(PutIndexTemplateRequest putIndexTemplateRequest, RequestOptions options)
Puts an index template using the Index Templates API.void
putTemplateAsync(PutIndexTemplateRequest putIndexTemplateRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener)
Asynchronously puts an index template using the Index Templates API.RefreshResponse
refresh(RefreshRequest refreshRequest, org.apache.http.Header... headers)
Deprecated.RefreshResponse
refresh(RefreshRequest refreshRequest, RequestOptions options)
Refresh one or more indices using the Refresh API.void
refreshAsync(RefreshRequest refreshRequest, ActionListener<RefreshResponse> listener, org.apache.http.Header... headers)
Deprecated.void
refreshAsync(RefreshRequest refreshRequest, RequestOptions options, ActionListener<RefreshResponse> listener)
Asynchronously refresh one or more indices using the Refresh API.RolloverResponse
rollover(RolloverRequest rolloverRequest, org.apache.http.Header... headers)
Deprecated.RolloverResponse
rollover(RolloverRequest rolloverRequest, RequestOptions options)
Rolls over an index using the Rollover Index API.void
rolloverAsync(RolloverRequest rolloverRequest, ActionListener<RolloverResponse> listener, org.apache.http.Header... headers)
Deprecated.void
rolloverAsync(RolloverRequest rolloverRequest, RequestOptions options, ActionListener<RolloverResponse> listener)
Asynchronously rolls over an index using the Rollover Index API.ResizeResponse
shrink(ResizeRequest resizeRequest, org.apache.http.Header... headers)
Deprecated.ResizeResponse
shrink(ResizeRequest resizeRequest, RequestOptions options)
Shrinks an index using the Shrink Index API.void
shrinkAsync(ResizeRequest resizeRequest, ActionListener<ResizeResponse> listener, org.apache.http.Header... headers)
Deprecated.void
shrinkAsync(ResizeRequest resizeRequest, RequestOptions options, ActionListener<ResizeResponse> listener)
Asynchronously shrinks an index using the Shrink index API.ResizeResponse
split(ResizeRequest resizeRequest, org.apache.http.Header... headers)
Deprecated.ResizeResponse
split(ResizeRequest resizeRequest, RequestOptions options)
Splits an index using the Split Index API.void
splitAsync(ResizeRequest resizeRequest, ActionListener<ResizeResponse> listener, org.apache.http.Header... headers)
Deprecated.void
splitAsync(ResizeRequest resizeRequest, RequestOptions options, ActionListener<ResizeResponse> listener)
Asynchronously splits an index using the Split Index API.ShardsAcknowledgedResponse
unfreeze(UnfreezeIndexRequest request, RequestOptions options)
Synchronously calls the _unfreeze APIvoid
unfreezeAsync(UnfreezeIndexRequest request, RequestOptions options, ActionListener<ShardsAcknowledgedResponse> listener)
Asynchronously calls the _unfreeze APIAcknowledgedResponse
updateAliases(IndicesAliasesRequest indicesAliasesRequest, org.apache.http.Header... headers)
AcknowledgedResponse
updateAliases(IndicesAliasesRequest indicesAliasesRequest, RequestOptions options)
Updates aliases using the Index Aliases API.void
updateAliasesAsync(IndicesAliasesRequest indicesAliasesRequest, ActionListener<AcknowledgedResponse> listener, org.apache.http.Header... headers)
Deprecated.void
updateAliasesAsync(IndicesAliasesRequest indicesAliasesRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener)
Asynchronously updates aliases using the Index Aliases API.ValidateQueryResponse
validateQuery(ValidateQueryRequest validateQueryRequest, RequestOptions options)
Validate a potentially expensive query without executing it.void
validateQueryAsync(ValidateQueryRequest validateQueryRequest, RequestOptions options, ActionListener<ValidateQueryResponse> listener)
Asynchronously validate a potentially expensive query without executing it.
-
-
-
Method Detail
-
delete
public AcknowledgedResponse delete(DeleteIndexRequest deleteIndexRequest, RequestOptions options) throws java.io.IOException
Deletes an index using the Delete Index API. See Delete Index API on elastic.co- Parameters:
deleteIndexRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
delete
@Deprecated public AcknowledgedResponse delete(DeleteIndexRequest deleteIndexRequest, org.apache.http.Header... headers) throws java.io.IOException
Deprecated.Deletes an index using the Delete Index API.- Throws:
java.io.IOException
-
deleteAsync
public void deleteAsync(DeleteIndexRequest deleteIndexRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener)
Asynchronously deletes an index using the Delete Index API. See Delete Index API on elastic.co- Parameters:
deleteIndexRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
deleteAsync
@Deprecated public void deleteAsync(DeleteIndexRequest deleteIndexRequest, ActionListener<AcknowledgedResponse> listener, org.apache.http.Header... headers)
Deprecated.Asynchronously deletes an index using the Delete Index API.
-
create
public CreateIndexResponse create(CreateIndexRequest createIndexRequest, RequestOptions options) throws java.io.IOException
Creates an index using the Create Index API. See Create Index API on elastic.co- Parameters:
createIndexRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
create
@Deprecated public CreateIndexResponse create(CreateIndexRequest createIndexRequest, org.apache.http.Header... headers) throws java.io.IOException
Deprecated.Creates an index using the Create Index API.- Throws:
java.io.IOException
-
createAsync
public void createAsync(CreateIndexRequest createIndexRequest, RequestOptions options, ActionListener<CreateIndexResponse> listener)
Asynchronously creates an index using the Create Index API. See Create Index API on elastic.co- Parameters:
createIndexRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
createAsync
@Deprecated public void createAsync(CreateIndexRequest createIndexRequest, ActionListener<CreateIndexResponse> listener, org.apache.http.Header... headers)
Deprecated.Asynchronously creates an index using the Create Index API.
-
putMapping
public AcknowledgedResponse putMapping(PutMappingRequest putMappingRequest, RequestOptions options) throws java.io.IOException
Updates the mappings on an index using the Put Mapping API. See Put Mapping API on elastic.co- Parameters:
putMappingRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
putMapping
@Deprecated public AcknowledgedResponse putMapping(PutMappingRequest putMappingRequest, org.apache.http.Header... headers) throws java.io.IOException
Deprecated.Updates the mappings on an index using the Put Mapping API.- Throws:
java.io.IOException
-
putMappingAsync
public void putMappingAsync(PutMappingRequest putMappingRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener)
Asynchronously updates the mappings on an index using the Put Mapping API. See Put Mapping API on elastic.co- Parameters:
putMappingRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
putMappingAsync
@Deprecated public void putMappingAsync(PutMappingRequest putMappingRequest, ActionListener<AcknowledgedResponse> listener, org.apache.http.Header... headers)
Deprecated.Asynchronously updates the mappings on an index using the Put Mapping API.
-
getMapping
public GetMappingsResponse getMapping(GetMappingsRequest getMappingsRequest, RequestOptions options) throws java.io.IOException
Retrieves the mappings on an index or indices using the Get Mapping API. See Get Mapping API on elastic.co- Parameters:
getMappingsRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
getMappingAsync
public void getMappingAsync(GetMappingsRequest getMappingsRequest, RequestOptions options, ActionListener<GetMappingsResponse> listener)
Asynchronously retrieves the mappings on an index on indices using the Get Mapping API. See Get Mapping API on elastic.co- Parameters:
getMappingsRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
getFieldMapping
public GetFieldMappingsResponse getFieldMapping(GetFieldMappingsRequest getFieldMappingsRequest, RequestOptions options) throws java.io.IOException
Retrieves the field mappings on an index or indices using the Get Field Mapping API. See Get Field Mapping API on elastic.co- Parameters:
getFieldMappingsRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
getFieldMappingAsync
public void getFieldMappingAsync(GetFieldMappingsRequest getFieldMappingsRequest, RequestOptions options, ActionListener<GetFieldMappingsResponse> listener)
Asynchronously retrieves the field mappings on an index on indices using the Get Field Mapping API. See Get Field Mapping API on elastic.co- Parameters:
getFieldMappingsRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
updateAliases
public AcknowledgedResponse updateAliases(IndicesAliasesRequest indicesAliasesRequest, RequestOptions options) throws java.io.IOException
Updates aliases using the Index Aliases API. See Index Aliases API on elastic.co- Parameters:
indicesAliasesRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
updateAliases
@Deprecated public AcknowledgedResponse updateAliases(IndicesAliasesRequest indicesAliasesRequest, org.apache.http.Header... headers) throws java.io.IOException
Updates aliases using the Index Aliases API.- Throws:
java.io.IOException
-
updateAliasesAsync
public void updateAliasesAsync(IndicesAliasesRequest indicesAliasesRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener)
Asynchronously updates aliases using the Index Aliases API. See Index Aliases API on elastic.co- Parameters:
indicesAliasesRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
updateAliasesAsync
@Deprecated public void updateAliasesAsync(IndicesAliasesRequest indicesAliasesRequest, ActionListener<AcknowledgedResponse> listener, org.apache.http.Header... headers)
Deprecated.Asynchronously updates aliases using the Index Aliases API.
-
open
public OpenIndexResponse open(OpenIndexRequest openIndexRequest, RequestOptions options) throws java.io.IOException
Opens an index using the Open Index API. See Open Index API on elastic.co- Parameters:
openIndexRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
open
@Deprecated public OpenIndexResponse open(OpenIndexRequest openIndexRequest, org.apache.http.Header... headers) throws java.io.IOException
Deprecated.Opens an index using the Open Index API.- Throws:
java.io.IOException
-
openAsync
public void openAsync(OpenIndexRequest openIndexRequest, RequestOptions options, ActionListener<OpenIndexResponse> listener)
Asynchronously opens an index using the Open Index API. See Open Index API on elastic.co- Parameters:
openIndexRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
openAsync
@Deprecated public void openAsync(OpenIndexRequest openIndexRequest, ActionListener<OpenIndexResponse> listener, org.apache.http.Header... headers)
Deprecated.Asynchronously opens an index using the Open Index API.
-
close
public AcknowledgedResponse close(CloseIndexRequest closeIndexRequest, RequestOptions options) throws java.io.IOException
Closes an index using the Close Index API. See Close Index API on elastic.co- Parameters:
closeIndexRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
close
@Deprecated public AcknowledgedResponse close(CloseIndexRequest closeIndexRequest, org.apache.http.Header... headers) throws java.io.IOException
Deprecated.Closes an index using the Close Index API.- Throws:
java.io.IOException
-
closeAsync
public void closeAsync(CloseIndexRequest closeIndexRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener)
Asynchronously closes an index using the Close Index API. See Close Index API on elastic.co- Parameters:
closeIndexRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
closeAsync
@Deprecated public void closeAsync(CloseIndexRequest closeIndexRequest, ActionListener<AcknowledgedResponse> listener, org.apache.http.Header... headers)
Deprecated.Asynchronously closes an index using the Close Index API.
-
existsAlias
public boolean existsAlias(GetAliasesRequest getAliasesRequest, RequestOptions options) throws java.io.IOException
Checks if one or more aliases exist using the Aliases Exist API. See Indices Aliases API on elastic.co- Parameters:
getAliasesRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException
- in case there is a problem sending the request
-
existsAlias
@Deprecated public boolean existsAlias(GetAliasesRequest getAliasesRequest, org.apache.http.Header... headers) throws java.io.IOException
Deprecated.Checks if one or more aliases exist using the Aliases Exist API.- Throws:
java.io.IOException
-
existsAliasAsync
public void existsAliasAsync(GetAliasesRequest getAliasesRequest, RequestOptions options, ActionListener<java.lang.Boolean> listener)
Asynchronously checks if one or more aliases exist using the Aliases Exist API. See Indices Aliases API on elastic.co- Parameters:
getAliasesRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
existsAliasAsync
@Deprecated public void existsAliasAsync(GetAliasesRequest getAliasesRequest, ActionListener<java.lang.Boolean> listener, org.apache.http.Header... headers)
Deprecated.Asynchronously checks if one or more aliases exist using the Aliases Exist API.
-
refresh
public RefreshResponse refresh(RefreshRequest refreshRequest, RequestOptions options) throws java.io.IOException
Refresh one or more indices using the Refresh API. See Refresh API on elastic.co- Parameters:
refreshRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
refresh
@Deprecated public RefreshResponse refresh(RefreshRequest refreshRequest, org.apache.http.Header... headers) throws java.io.IOException
Deprecated.Refresh one or more indices using the Refresh API.- Throws:
java.io.IOException
-
refreshAsync
public void refreshAsync(RefreshRequest refreshRequest, RequestOptions options, ActionListener<RefreshResponse> listener)
Asynchronously refresh one or more indices using the Refresh API. See Refresh API on elastic.co- Parameters:
refreshRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
refreshAsync
@Deprecated public void refreshAsync(RefreshRequest refreshRequest, ActionListener<RefreshResponse> listener, org.apache.http.Header... headers)
Deprecated.Asynchronously refresh one or more indices using the Refresh API.
-
flush
public FlushResponse flush(FlushRequest flushRequest, RequestOptions options) throws java.io.IOException
Flush one or more indices using the Flush API. See Flush API on elastic.co- Parameters:
flushRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
flush
@Deprecated public FlushResponse flush(FlushRequest flushRequest, org.apache.http.Header... headers) throws java.io.IOException
Deprecated.Flush one or more indices using the Flush API.- Throws:
java.io.IOException
-
flushAsync
public void flushAsync(FlushRequest flushRequest, RequestOptions options, ActionListener<FlushResponse> listener)
Asynchronously flush one or more indices using the Flush API. See Flush API on elastic.co- Parameters:
flushRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
flushAsync
@Deprecated public void flushAsync(FlushRequest flushRequest, ActionListener<FlushResponse> listener, org.apache.http.Header... headers)
Deprecated.Asynchronously flush one or more indices using the Flush API.
-
flushSynced
public SyncedFlushResponse flushSynced(SyncedFlushRequest syncedFlushRequest, RequestOptions options) throws java.io.IOException
Initiate a synced flush manually using the synced flush API. See Synced flush API on elastic.co- Parameters:
syncedFlushRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
flushSyncedAsync
public void flushSyncedAsync(SyncedFlushRequest syncedFlushRequest, RequestOptions options, ActionListener<SyncedFlushResponse> listener)
Asynchronously initiate a synced flush manually using the synced flush API. See Synced flush API on elastic.co- Parameters:
syncedFlushRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
getSettings
public GetSettingsResponse getSettings(GetSettingsRequest getSettingsRequest, RequestOptions options) throws java.io.IOException
Retrieve the settings of one or more indices. See Indices Get Settings API on elastic.co- Parameters:
getSettingsRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
getSettingsAsync
public void getSettingsAsync(GetSettingsRequest getSettingsRequest, RequestOptions options, ActionListener<GetSettingsResponse> listener)
Asynchronously retrieve the settings of one or more indices. See Indices Get Settings API on elastic.co- Parameters:
getSettingsRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
get
public GetIndexResponse get(GetIndexRequest getIndexRequest, RequestOptions options) throws java.io.IOException
Retrieve information about one or more indexes See Indices Get Index API on elastic.co- Parameters:
getIndexRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
getAsync
public void getAsync(GetIndexRequest getIndexRequest, RequestOptions options, ActionListener<GetIndexResponse> listener)
Retrieve information about one or more indexes See Indices Get Index API on elastic.co- Parameters:
getIndexRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
forceMerge
@Deprecated public ForceMergeResponse forceMerge(ForceMergeRequest forceMergeRequest, RequestOptions options) throws java.io.IOException
Deprecated.useforcemerge(ForceMergeRequest, RequestOptions)
insteadForce merge one or more indices using the Force Merge API. See Force Merge API on elastic.co- Parameters:
forceMergeRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
forcemerge
public ForceMergeResponse forcemerge(ForceMergeRequest forceMergeRequest, RequestOptions options) throws java.io.IOException
Force merge one or more indices using the Force Merge API. See Force Merge API on elastic.co- Parameters:
forceMergeRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
forceMerge
@Deprecated public ForceMergeResponse forceMerge(ForceMergeRequest forceMergeRequest, org.apache.http.Header... headers) throws java.io.IOException
Deprecated.Force merge one or more indices using the Force Merge API.- Throws:
java.io.IOException
-
forceMergeAsync
@Deprecated public void forceMergeAsync(ForceMergeRequest forceMergeRequest, RequestOptions options, ActionListener<ForceMergeResponse> listener)
Deprecated.Asynchronously force merge one or more indices using the Force Merge API. See Force Merge API on elastic.co- Parameters:
forceMergeRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
forcemergeAsync
public void forcemergeAsync(ForceMergeRequest forceMergeRequest, RequestOptions options, ActionListener<ForceMergeResponse> listener)
Asynchronously force merge one or more indices using the Force Merge API. See Force Merge API on elastic.co- Parameters:
forceMergeRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
forceMergeAsync
@Deprecated public void forceMergeAsync(ForceMergeRequest forceMergeRequest, ActionListener<ForceMergeResponse> listener, org.apache.http.Header... headers)
Deprecated.Asynchronously force merge one or more indices using the Force Merge API.
-
clearCache
public ClearIndicesCacheResponse clearCache(ClearIndicesCacheRequest clearIndicesCacheRequest, RequestOptions options) throws java.io.IOException
Clears the cache of one or more indices using the Clear Cache API. See Clear Cache API on elastic.co- Parameters:
clearIndicesCacheRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
clearCache
@Deprecated public ClearIndicesCacheResponse clearCache(ClearIndicesCacheRequest clearIndicesCacheRequest, org.apache.http.Header... headers) throws java.io.IOException
Deprecated.Clears the cache of one or more indices using the Clear Cache API.- Throws:
java.io.IOException
-
clearCacheAsync
public void clearCacheAsync(ClearIndicesCacheRequest clearIndicesCacheRequest, RequestOptions options, ActionListener<ClearIndicesCacheResponse> listener)
Asynchronously clears the cache of one or more indices using the Clear Cache API. See Clear Cache API on elastic.co- Parameters:
clearIndicesCacheRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
clearCacheAsync
@Deprecated public void clearCacheAsync(ClearIndicesCacheRequest clearIndicesCacheRequest, ActionListener<ClearIndicesCacheResponse> listener, org.apache.http.Header... headers)
Deprecated.Asynchronously clears the cache of one or more indices using the Clear Cache API.
-
exists
public boolean exists(GetIndexRequest request, RequestOptions options) throws java.io.IOException
Checks if the index (indices) exists or not. See Indices Exists API on elastic.co- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException
- in case there is a problem sending the request
-
exists
@Deprecated public boolean exists(GetIndexRequest request, org.apache.http.Header... headers) throws java.io.IOException
Deprecated.Checks if the index (indices) exists or not.- Throws:
java.io.IOException
-
existsAsync
public void existsAsync(GetIndexRequest request, RequestOptions options, ActionListener<java.lang.Boolean> listener)
Asynchronously checks if the index (indices) exists or not. See Indices Exists API on elastic.co- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
existsAsync
@Deprecated public void existsAsync(GetIndexRequest request, ActionListener<java.lang.Boolean> listener, org.apache.http.Header... headers)
Deprecated.Asynchronously checks if the index (indices) exists or not.
-
shrink
public ResizeResponse shrink(ResizeRequest resizeRequest, RequestOptions options) throws java.io.IOException
Shrinks an index using the Shrink Index API. See Shrink Index API on elastic.co- Parameters:
resizeRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
shrink
@Deprecated public ResizeResponse shrink(ResizeRequest resizeRequest, org.apache.http.Header... headers) throws java.io.IOException
Deprecated.Shrinks an index using the Shrink Index API.- Throws:
java.io.IOException
-
shrinkAsync
public void shrinkAsync(ResizeRequest resizeRequest, RequestOptions options, ActionListener<ResizeResponse> listener)
Asynchronously shrinks an index using the Shrink index API. See Shrink Index API on elastic.co- Parameters:
resizeRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
shrinkAsync
@Deprecated public void shrinkAsync(ResizeRequest resizeRequest, ActionListener<ResizeResponse> listener, org.apache.http.Header... headers)
Deprecated.Asynchronously shrinks an index using the Shrink index API.
-
split
public ResizeResponse split(ResizeRequest resizeRequest, RequestOptions options) throws java.io.IOException
Splits an index using the Split Index API. See Split Index API on elastic.co- Parameters:
resizeRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
split
@Deprecated public ResizeResponse split(ResizeRequest resizeRequest, org.apache.http.Header... headers) throws java.io.IOException
Deprecated.Splits an index using the Split Index API.- Throws:
java.io.IOException
-
splitAsync
public void splitAsync(ResizeRequest resizeRequest, RequestOptions options, ActionListener<ResizeResponse> listener)
Asynchronously splits an index using the Split Index API. See Split Index API on elastic.co- Parameters:
resizeRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
splitAsync
@Deprecated public void splitAsync(ResizeRequest resizeRequest, ActionListener<ResizeResponse> listener, org.apache.http.Header... headers)
Deprecated.Asynchronously splits an index using the Split Index API.
-
rollover
public RolloverResponse rollover(RolloverRequest rolloverRequest, RequestOptions options) throws java.io.IOException
Rolls over an index using the Rollover Index API. See Rollover Index API on elastic.co- Parameters:
rolloverRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
rollover
@Deprecated public RolloverResponse rollover(RolloverRequest rolloverRequest, org.apache.http.Header... headers) throws java.io.IOException
Deprecated.Rolls over an index using the Rollover Index API.- Throws:
java.io.IOException
-
rolloverAsync
public void rolloverAsync(RolloverRequest rolloverRequest, RequestOptions options, ActionListener<RolloverResponse> listener)
Asynchronously rolls over an index using the Rollover Index API. See Rollover Index API on elastic.co- Parameters:
rolloverRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
rolloverAsync
@Deprecated public void rolloverAsync(RolloverRequest rolloverRequest, ActionListener<RolloverResponse> listener, org.apache.http.Header... headers)
Deprecated.Asynchronously rolls over an index using the Rollover Index API.
-
getAlias
public GetAliasesResponse getAlias(GetAliasesRequest getAliasesRequest, RequestOptions options) throws java.io.IOException
Gets one or more aliases using the Get Index Aliases API. See Indices Aliases API on elastic.co- Parameters:
getAliasesRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
getAliasAsync
public void getAliasAsync(GetAliasesRequest getAliasesRequest, RequestOptions options, ActionListener<GetAliasesResponse> listener)
Asynchronously gets one or more aliases using the Get Index Aliases API. See Indices Aliases API on elastic.co- Parameters:
getAliasesRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
putSettings
public AcknowledgedResponse putSettings(UpdateSettingsRequest updateSettingsRequest, RequestOptions options) throws java.io.IOException
Updates specific index level settings using the Update Indices Settings API. See Update Indices Settings API on elastic.co- Parameters:
updateSettingsRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
putSettings
@Deprecated public AcknowledgedResponse putSettings(UpdateSettingsRequest updateSettingsRequest, org.apache.http.Header... headers) throws java.io.IOException
Deprecated.Updates specific index level settings using the Update Indices Settings API.- Throws:
java.io.IOException
-
putSettingsAsync
public void putSettingsAsync(UpdateSettingsRequest updateSettingsRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener)
Asynchronously updates specific index level settings using the Update Indices Settings API. See Update Indices Settings API on elastic.co- Parameters:
updateSettingsRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
putSettingsAsync
@Deprecated public void putSettingsAsync(UpdateSettingsRequest updateSettingsRequest, ActionListener<AcknowledgedResponse> listener, org.apache.http.Header... headers)
Deprecated.Asynchronously updates specific index level settings using the Update Indices Settings API.
-
putTemplate
public AcknowledgedResponse putTemplate(PutIndexTemplateRequest putIndexTemplateRequest, RequestOptions options) throws java.io.IOException
Puts an index template using the Index Templates API. See Index Templates API on elastic.co- Parameters:
putIndexTemplateRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
putTemplateAsync
public void putTemplateAsync(PutIndexTemplateRequest putIndexTemplateRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener)
Asynchronously puts an index template using the Index Templates API. See Index Templates API on elastic.co- Parameters:
putIndexTemplateRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
validateQuery
public ValidateQueryResponse validateQuery(ValidateQueryRequest validateQueryRequest, RequestOptions options) throws java.io.IOException
Validate a potentially expensive query without executing it.- Parameters:
validateQueryRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
validateQueryAsync
public void validateQueryAsync(ValidateQueryRequest validateQueryRequest, RequestOptions options, ActionListener<ValidateQueryResponse> listener)
Asynchronously validate a potentially expensive query without executing it.- Parameters:
validateQueryRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
getTemplate
public GetIndexTemplatesResponse getTemplate(GetIndexTemplatesRequest getIndexTemplatesRequest, RequestOptions options) throws java.io.IOException
Gets index templates using the Index Templates API See Index Templates API on elastic.co- Parameters:
getIndexTemplatesRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- the response
- Throws:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
getTemplateAsync
public void getTemplateAsync(GetIndexTemplatesRequest getIndexTemplatesRequest, RequestOptions options, ActionListener<GetIndexTemplatesResponse> listener)
Asynchronously gets index templates using the Index Templates API See Index Templates API on elastic.co- Parameters:
getIndexTemplatesRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
existsTemplate
public boolean existsTemplate(IndexTemplatesExistRequest indexTemplatesRequest, RequestOptions options) throws java.io.IOException
Uses the Index Templates API to determine if index templates exist- Parameters:
indexTemplatesRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Returns:
- true if any index templates in the request exist, false otherwise
- Throws:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
existsTemplateAsync
public void existsTemplateAsync(IndexTemplatesExistRequest indexTemplatesExistRequest, RequestOptions options, ActionListener<java.lang.Boolean> listener)
Uses the Index Templates API to determine if index templates exist- Parameters:
indexTemplatesExistRequest
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion. The listener will be called with the valuetrue
if any index templates in the request exist, false otherwise
-
analyze
public AnalyzeResponse analyze(AnalyzeRequest request, RequestOptions options) throws java.io.IOException
Calls the analyze API See Analyze API on elastic.co- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Throws:
java.io.IOException
-
analyzeAsync
public void analyzeAsync(AnalyzeRequest request, RequestOptions options, ActionListener<AnalyzeResponse> listener)
Asynchronously calls the analyze API See Analyze API on elastic.co- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
freeze
public ShardsAcknowledgedResponse freeze(FreezeIndexRequest request, RequestOptions options) throws java.io.IOException
Synchronously calls the _freeze API- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Throws:
java.io.IOException
-
freezeAsync
public void freezeAsync(FreezeIndexRequest request, RequestOptions options, ActionListener<ShardsAcknowledgedResponse> listener)
Asynchronously calls the _freeze API- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
unfreeze
public ShardsAcknowledgedResponse unfreeze(UnfreezeIndexRequest request, RequestOptions options) throws java.io.IOException
Synchronously calls the _unfreeze API- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Throws:
java.io.IOException
-
unfreezeAsync
public void unfreezeAsync(UnfreezeIndexRequest request, RequestOptions options, ActionListener<ShardsAcknowledgedResponse> listener)
Asynchronously calls the _unfreeze API- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
deleteTemplate
public AcknowledgedResponse deleteTemplate(DeleteIndexTemplateRequest request, RequestOptions options) throws java.io.IOException
Delete an index template using the Index Templates API See Index Templates API on elastic.co- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customized- Throws:
java.io.IOException
- in case there is a problem sending the request or parsing back the response
-
deleteTemplateAsync
public void deleteTemplateAsync(DeleteIndexTemplateRequest request, RequestOptions options, ActionListener<AcknowledgedResponse> listener)
Asynchronously delete an index template using the Index Templates API See Index Templates API on elastic.co- Parameters:
request
- the requestoptions
- the request options (e.g. headers), useRequestOptions.DEFAULT
if nothing needs to be customizedlistener
- the listener to be notified upon request completion
-
-