Package org.elasticsearch.client
Class IndicesClient
- java.lang.Object
-
- org.elasticsearch.client.IndicesClient
-
public final class IndicesClient extends java.lang.ObjectA wrapper for theRestHighLevelClientthat provides methods for accessing the Indices API.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AnalyzeResponseanalyze(AnalyzeRequest request, RequestOptions options)Calls the analyze API See Analyze API on elastic.covoidanalyzeAsync(AnalyzeRequest request, RequestOptions options, ActionListener<AnalyzeResponse> listener)Asynchronously calls the analyze API See Analyze API on elastic.coClearIndicesCacheResponseclearCache(ClearIndicesCacheRequest clearIndicesCacheRequest, org.apache.http.Header... headers)Deprecated.ClearIndicesCacheResponseclearCache(ClearIndicesCacheRequest clearIndicesCacheRequest, RequestOptions options)Clears the cache of one or more indices using the Clear Cache API.voidclearCacheAsync(ClearIndicesCacheRequest clearIndicesCacheRequest, ActionListener<ClearIndicesCacheResponse> listener, org.apache.http.Header... headers)Deprecated.voidclearCacheAsync(ClearIndicesCacheRequest clearIndicesCacheRequest, RequestOptions options, ActionListener<ClearIndicesCacheResponse> listener)Asynchronously clears the cache of one or more indices using the Clear Cache API.AcknowledgedResponseclose(CloseIndexRequest closeIndexRequest, org.apache.http.Header... headers)Deprecated.AcknowledgedResponseclose(CloseIndexRequest closeIndexRequest, RequestOptions options)Closes an index using the Close Index API.voidcloseAsync(CloseIndexRequest closeIndexRequest, ActionListener<AcknowledgedResponse> listener, org.apache.http.Header... headers)Deprecated.voidcloseAsync(CloseIndexRequest closeIndexRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously closes an index using the Close Index API.CreateIndexResponsecreate(CreateIndexRequest createIndexRequest, org.apache.http.Header... headers)Deprecated.CreateIndexResponsecreate(CreateIndexRequest createIndexRequest, RequestOptions options)Creates an index using the Create Index API.voidcreateAsync(CreateIndexRequest createIndexRequest, ActionListener<CreateIndexResponse> listener, org.apache.http.Header... headers)Deprecated.voidcreateAsync(CreateIndexRequest createIndexRequest, RequestOptions options, ActionListener<CreateIndexResponse> listener)Asynchronously creates an index using the Create Index API.AcknowledgedResponsedelete(DeleteIndexRequest deleteIndexRequest, org.apache.http.Header... headers)Deprecated.AcknowledgedResponsedelete(DeleteIndexRequest deleteIndexRequest, RequestOptions options)Deletes an index using the Delete Index API.voiddeleteAsync(DeleteIndexRequest deleteIndexRequest, ActionListener<AcknowledgedResponse> listener, org.apache.http.Header... headers)Deprecated.voiddeleteAsync(DeleteIndexRequest deleteIndexRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously deletes an index using the Delete Index API.booleanexists(GetIndexRequest request, org.apache.http.Header... headers)Deprecated.booleanexists(GetIndexRequest request, RequestOptions options)Checks if the index (indices) exists or not.booleanexistsAlias(GetAliasesRequest getAliasesRequest, org.apache.http.Header... headers)Deprecated.booleanexistsAlias(GetAliasesRequest getAliasesRequest, RequestOptions options)Checks if one or more aliases exist using the Aliases Exist API.voidexistsAliasAsync(GetAliasesRequest getAliasesRequest, ActionListener<java.lang.Boolean> listener, org.apache.http.Header... headers)Deprecated.voidexistsAliasAsync(GetAliasesRequest getAliasesRequest, RequestOptions options, ActionListener<java.lang.Boolean> listener)Asynchronously checks if one or more aliases exist using the Aliases Exist API.voidexistsAsync(GetIndexRequest request, ActionListener<java.lang.Boolean> listener, org.apache.http.Header... headers)Deprecated.voidexistsAsync(GetIndexRequest request, RequestOptions options, ActionListener<java.lang.Boolean> listener)Asynchronously checks if the index (indices) exists or not.FlushResponseflush(FlushRequest flushRequest, org.apache.http.Header... headers)Deprecated.FlushResponseflush(FlushRequest flushRequest, RequestOptions options)Flush one or more indices using the Flush API.voidflushAsync(FlushRequest flushRequest, ActionListener<FlushResponse> listener, org.apache.http.Header... headers)Deprecated.voidflushAsync(FlushRequest flushRequest, RequestOptions options, ActionListener<FlushResponse> listener)Asynchronously flush one or more indices using the Flush API.SyncedFlushResponseflushSynced(SyncedFlushRequest syncedFlushRequest, RequestOptions options)Initiate a synced flush manually using the synced flush API.voidflushSyncedAsync(SyncedFlushRequest syncedFlushRequest, RequestOptions options, ActionListener<SyncedFlushResponse> listener)Asynchronously initiate a synced flush manually using the synced flush API.ForceMergeResponseforcemerge(ForceMergeRequest forceMergeRequest, RequestOptions options)Force merge one or more indices using the Force Merge API.ForceMergeResponseforceMerge(ForceMergeRequest forceMergeRequest, org.apache.http.Header... headers)Deprecated.ForceMergeResponseforceMerge(ForceMergeRequest forceMergeRequest, RequestOptions options)Deprecated.useforcemerge(ForceMergeRequest, RequestOptions)insteadvoidforcemergeAsync(ForceMergeRequest forceMergeRequest, RequestOptions options, ActionListener<ForceMergeResponse> listener)Asynchronously force merge one or more indices using the Force Merge API.voidforceMergeAsync(ForceMergeRequest forceMergeRequest, ActionListener<ForceMergeResponse> listener, org.apache.http.Header... headers)Deprecated.voidforceMergeAsync(ForceMergeRequest forceMergeRequest, RequestOptions options, ActionListener<ForceMergeResponse> listener)Deprecated.GetIndexResponseget(GetIndexRequest getIndexRequest, RequestOptions options)Retrieve information about one or more indexes See Indices Get Index API on elastic.coGetAliasesResponsegetAlias(GetAliasesRequest getAliasesRequest, RequestOptions options)Gets one or more aliases using the Get Index Aliases API.voidgetAliasAsync(GetAliasesRequest getAliasesRequest, RequestOptions options, ActionListener<GetAliasesResponse> listener)Asynchronously gets one or more aliases using the Get Index Aliases API.voidgetAsync(GetIndexRequest getIndexRequest, RequestOptions options, ActionListener<GetIndexResponse> listener)Retrieve information about one or more indexes See Indices Get Index API on elastic.coGetFieldMappingsResponsegetFieldMapping(GetFieldMappingsRequest getFieldMappingsRequest, RequestOptions options)Retrieves the field mappings on an index or indices using the Get Field Mapping API.voidgetFieldMappingAsync(GetFieldMappingsRequest getFieldMappingsRequest, RequestOptions options, ActionListener<GetFieldMappingsResponse> listener)Asynchronously retrieves the field mappings on an index on indices using the Get Field Mapping API.GetMappingsResponsegetMapping(GetMappingsRequest getMappingsRequest, RequestOptions options)Retrieves the mappings on an index or indices using the Get Mapping API.voidgetMappingAsync(GetMappingsRequest getMappingsRequest, RequestOptions options, ActionListener<GetMappingsResponse> listener)Asynchronously retrieves the mappings on an index on indices using the Get Mapping API.GetSettingsResponsegetSettings(GetSettingsRequest getSettingsRequest, RequestOptions options)Retrieve the settings of one or more indices.voidgetSettingsAsync(GetSettingsRequest getSettingsRequest, RequestOptions options, ActionListener<GetSettingsResponse> listener)Asynchronously retrieve the settings of one or more indices.GetIndexTemplatesResponsegetTemplate(GetIndexTemplatesRequest getIndexTemplatesRequest, RequestOptions options)Gets index templates using the Index Templates API See Index Templates API on elastic.covoidgetTemplateAsync(GetIndexTemplatesRequest getIndexTemplatesRequest, RequestOptions options, ActionListener<GetIndexTemplatesResponse> listener)Asynchronously gets index templates using the Index Templates API See Index Templates API on elastic.coOpenIndexResponseopen(OpenIndexRequest openIndexRequest, org.apache.http.Header... headers)Deprecated.OpenIndexResponseopen(OpenIndexRequest openIndexRequest, RequestOptions options)Opens an index using the Open Index API.voidopenAsync(OpenIndexRequest openIndexRequest, ActionListener<OpenIndexResponse> listener, org.apache.http.Header... headers)Deprecated.voidopenAsync(OpenIndexRequest openIndexRequest, RequestOptions options, ActionListener<OpenIndexResponse> listener)Asynchronously opens an index using the Open Index API.AcknowledgedResponseputMapping(PutMappingRequest putMappingRequest, org.apache.http.Header... headers)Deprecated.AcknowledgedResponseputMapping(PutMappingRequest putMappingRequest, RequestOptions options)Updates the mappings on an index using the Put Mapping API.voidputMappingAsync(PutMappingRequest putMappingRequest, ActionListener<AcknowledgedResponse> listener, org.apache.http.Header... headers)Deprecated.voidputMappingAsync(PutMappingRequest putMappingRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously updates the mappings on an index using the Put Mapping API.AcknowledgedResponseputSettings(UpdateSettingsRequest updateSettingsRequest, org.apache.http.Header... headers)Deprecated.AcknowledgedResponseputSettings(UpdateSettingsRequest updateSettingsRequest, RequestOptions options)Updates specific index level settings using the Update Indices Settings API.voidputSettingsAsync(UpdateSettingsRequest updateSettingsRequest, ActionListener<AcknowledgedResponse> listener, org.apache.http.Header... headers)Deprecated.voidputSettingsAsync(UpdateSettingsRequest updateSettingsRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously updates specific index level settings using the Update Indices Settings API.AcknowledgedResponseputTemplate(PutIndexTemplateRequest putIndexTemplateRequest, RequestOptions options)Puts an index template using the Index Templates API.voidputTemplateAsync(PutIndexTemplateRequest putIndexTemplateRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously puts an index template using the Index Templates API.RefreshResponserefresh(RefreshRequest refreshRequest, org.apache.http.Header... headers)Deprecated.RefreshResponserefresh(RefreshRequest refreshRequest, RequestOptions options)Refresh one or more indices using the Refresh API.voidrefreshAsync(RefreshRequest refreshRequest, ActionListener<RefreshResponse> listener, org.apache.http.Header... headers)Deprecated.voidrefreshAsync(RefreshRequest refreshRequest, RequestOptions options, ActionListener<RefreshResponse> listener)Asynchronously refresh one or more indices using the Refresh API.RolloverResponserollover(RolloverRequest rolloverRequest, org.apache.http.Header... headers)Deprecated.RolloverResponserollover(RolloverRequest rolloverRequest, RequestOptions options)Rolls over an index using the Rollover Index API.voidrolloverAsync(RolloverRequest rolloverRequest, ActionListener<RolloverResponse> listener, org.apache.http.Header... headers)Deprecated.voidrolloverAsync(RolloverRequest rolloverRequest, RequestOptions options, ActionListener<RolloverResponse> listener)Asynchronously rolls over an index using the Rollover Index API.ResizeResponseshrink(ResizeRequest resizeRequest, org.apache.http.Header... headers)Deprecated.ResizeResponseshrink(ResizeRequest resizeRequest, RequestOptions options)Shrinks an index using the Shrink Index API.voidshrinkAsync(ResizeRequest resizeRequest, ActionListener<ResizeResponse> listener, org.apache.http.Header... headers)Deprecated.voidshrinkAsync(ResizeRequest resizeRequest, RequestOptions options, ActionListener<ResizeResponse> listener)Asynchronously shrinks an index using the Shrink index API.ResizeResponsesplit(ResizeRequest resizeRequest, org.apache.http.Header... headers)Deprecated.ResizeResponsesplit(ResizeRequest resizeRequest, RequestOptions options)Splits an index using the Split Index API.voidsplitAsync(ResizeRequest resizeRequest, ActionListener<ResizeResponse> listener, org.apache.http.Header... headers)Deprecated.voidsplitAsync(ResizeRequest resizeRequest, RequestOptions options, ActionListener<ResizeResponse> listener)Asynchronously splits an index using the Split Index API.AcknowledgedResponseupdateAliases(IndicesAliasesRequest indicesAliasesRequest, org.apache.http.Header... headers)AcknowledgedResponseupdateAliases(IndicesAliasesRequest indicesAliasesRequest, RequestOptions options)Updates aliases using the Index Aliases API.voidupdateAliasesAsync(IndicesAliasesRequest indicesAliasesRequest, ActionListener<AcknowledgedResponse> listener, org.apache.http.Header... headers)Deprecated.voidupdateAliasesAsync(IndicesAliasesRequest indicesAliasesRequest, RequestOptions options, ActionListener<AcknowledgedResponse> listener)Asynchronously updates aliases using the Index Aliases API.ValidateQueryResponsevalidateQuery(ValidateQueryRequest validateQueryRequest, RequestOptions options)Validate a potentially expensive query without executing it.voidvalidateQueryAsync(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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif 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.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion
-
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.DEFAULTif 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.DEFAULTif nothing needs to be customizedlistener- the listener to be notified upon request completion
-
-