public final class IndicesClient
extends java.lang.Object
RestHighLevelClient
that provides methods for accessing the Indices API.
Modifier and Type | Method | Description |
---|---|---|
ClearIndicesCacheResponse |
clearCache(ClearIndicesCacheRequest clearIndicesCacheRequest,
org.apache.http.Header... headers) |
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) |
Asynchronously clears the cache of one or more indices using the Clear Cache API
|
CloseIndexResponse |
close(CloseIndexRequest closeIndexRequest,
org.apache.http.Header... headers) |
Closes an index using the Close Index API
|
void |
closeAsync(CloseIndexRequest closeIndexRequest,
ActionListener<CloseIndexResponse> listener,
org.apache.http.Header... headers) |
Asynchronously closes an index using the Close Index API
|
CreateIndexResponse |
create(CreateIndexRequest createIndexRequest,
org.apache.http.Header... headers) |
Creates an index using the Create Index API
|
void |
createAsync(CreateIndexRequest createIndexRequest,
ActionListener<CreateIndexResponse> listener,
org.apache.http.Header... headers) |
Asynchronously creates an index using the Create Index API
|
DeleteIndexResponse |
delete(DeleteIndexRequest deleteIndexRequest,
org.apache.http.Header... headers) |
Deletes an index using the Delete Index API
|
void |
deleteAsync(DeleteIndexRequest deleteIndexRequest,
ActionListener<DeleteIndexResponse> listener,
org.apache.http.Header... headers) |
Asynchronously deletes an index using the Delete Index API
|
boolean |
exists(GetIndexRequest request,
org.apache.http.Header... headers) |
Checks if the index (indices) exists or not.
|
boolean |
existsAlias(GetAliasesRequest getAliasesRequest,
org.apache.http.Header... headers) |
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) |
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) |
Asynchronously checks if the index (indices) exists or not.
|
FlushResponse |
flush(FlushRequest flushRequest,
org.apache.http.Header... headers) |
Flush one or more indices using the Flush API
|
void |
flushAsync(FlushRequest flushRequest,
ActionListener<FlushResponse> listener,
org.apache.http.Header... headers) |
Asynchronously flush one or more indices using the Flush API
|
ForceMergeResponse |
forceMerge(ForceMergeRequest forceMergeRequest,
org.apache.http.Header... headers) |
Force merge one or more indices using the Force Merge API
|
void |
forceMergeAsync(ForceMergeRequest forceMergeRequest,
ActionListener<ForceMergeResponse> listener,
org.apache.http.Header... headers) |
Asynchronously force merge one or more indices using the Force Merge API
|
OpenIndexResponse |
open(OpenIndexRequest openIndexRequest,
org.apache.http.Header... headers) |
Opens an index using the Open Index API
|
void |
openAsync(OpenIndexRequest openIndexRequest,
ActionListener<OpenIndexResponse> listener,
org.apache.http.Header... headers) |
Asynchronously opens an index using the Open Index API
|
PutMappingResponse |
putMapping(PutMappingRequest putMappingRequest,
org.apache.http.Header... headers) |
Updates the mappings on an index using the Put Mapping API
|
void |
putMappingAsync(PutMappingRequest putMappingRequest,
ActionListener<PutMappingResponse> listener,
org.apache.http.Header... headers) |
Asynchronously updates the mappings on an index using the Put Mapping API
|
UpdateSettingsResponse |
putSettings(UpdateSettingsRequest updateSettingsRequest,
org.apache.http.Header... headers) |
Updates specific index level settings using the Update Indices Settings API
|
void |
putSettingsAsync(UpdateSettingsRequest updateSettingsRequest,
ActionListener<UpdateSettingsResponse> listener,
org.apache.http.Header... headers) |
Asynchronously updates specific index level settings using the Update Indices Settings API
|
RefreshResponse |
refresh(RefreshRequest refreshRequest,
org.apache.http.Header... headers) |
Refresh one or more indices using the Refresh API
|
void |
refreshAsync(RefreshRequest refreshRequest,
ActionListener<RefreshResponse> listener,
org.apache.http.Header... headers) |
Asynchronously refresh one or more indices using the Refresh API
|
RolloverResponse |
rollover(RolloverRequest rolloverRequest,
org.apache.http.Header... headers) |
Rolls over an index using the Rollover Index API
|
void |
rolloverAsync(RolloverRequest rolloverRequest,
ActionListener<RolloverResponse> listener,
org.apache.http.Header... headers) |
Asynchronously rolls over an index using the Rollover Index API
|
ResizeResponse |
shrink(ResizeRequest resizeRequest,
org.apache.http.Header... headers) |
Shrinks an index using the Shrink Index API
|
void |
shrinkAsync(ResizeRequest resizeRequest,
ActionListener<ResizeResponse> listener,
org.apache.http.Header... headers) |
Asynchronously shrinks an index using the Shrink index API
|
ResizeResponse |
split(ResizeRequest resizeRequest,
org.apache.http.Header... headers) |
Splits an index using the Split Index API
|
void |
splitAsync(ResizeRequest resizeRequest,
ActionListener<ResizeResponse> listener,
org.apache.http.Header... headers) |
Asynchronously splits an index using the Split Index API
|
IndicesAliasesResponse |
updateAliases(IndicesAliasesRequest indicesAliasesRequest,
org.apache.http.Header... headers) |
Updates aliases using the Index Aliases API
|
void |
updateAliasesAsync(IndicesAliasesRequest indicesAliasesRequest,
ActionListener<IndicesAliasesResponse> listener,
org.apache.http.Header... headers) |
Asynchronously updates aliases using the Index Aliases API
|
public DeleteIndexResponse delete(DeleteIndexRequest deleteIndexRequest, org.apache.http.Header... headers) throws java.io.IOException
java.io.IOException
public void deleteAsync(DeleteIndexRequest deleteIndexRequest, ActionListener<DeleteIndexResponse> listener, org.apache.http.Header... headers)
public CreateIndexResponse create(CreateIndexRequest createIndexRequest, org.apache.http.Header... headers) throws java.io.IOException
java.io.IOException
public void createAsync(CreateIndexRequest createIndexRequest, ActionListener<CreateIndexResponse> listener, org.apache.http.Header... headers)
public PutMappingResponse putMapping(PutMappingRequest putMappingRequest, org.apache.http.Header... headers) throws java.io.IOException
java.io.IOException
public void putMappingAsync(PutMappingRequest putMappingRequest, ActionListener<PutMappingResponse> listener, org.apache.http.Header... headers)
public IndicesAliasesResponse updateAliases(IndicesAliasesRequest indicesAliasesRequest, org.apache.http.Header... headers) throws java.io.IOException
java.io.IOException
public void updateAliasesAsync(IndicesAliasesRequest indicesAliasesRequest, ActionListener<IndicesAliasesResponse> listener, org.apache.http.Header... headers)
public OpenIndexResponse open(OpenIndexRequest openIndexRequest, org.apache.http.Header... headers) throws java.io.IOException
java.io.IOException
public void openAsync(OpenIndexRequest openIndexRequest, ActionListener<OpenIndexResponse> listener, org.apache.http.Header... headers)
public CloseIndexResponse close(CloseIndexRequest closeIndexRequest, org.apache.http.Header... headers) throws java.io.IOException
java.io.IOException
public void closeAsync(CloseIndexRequest closeIndexRequest, ActionListener<CloseIndexResponse> listener, org.apache.http.Header... headers)
public boolean existsAlias(GetAliasesRequest getAliasesRequest, org.apache.http.Header... headers) throws java.io.IOException
java.io.IOException
public void existsAliasAsync(GetAliasesRequest getAliasesRequest, ActionListener<java.lang.Boolean> listener, org.apache.http.Header... headers)
public RefreshResponse refresh(RefreshRequest refreshRequest, org.apache.http.Header... headers) throws java.io.IOException
java.io.IOException
public void refreshAsync(RefreshRequest refreshRequest, ActionListener<RefreshResponse> listener, org.apache.http.Header... headers)
public FlushResponse flush(FlushRequest flushRequest, org.apache.http.Header... headers) throws java.io.IOException
java.io.IOException
public void flushAsync(FlushRequest flushRequest, ActionListener<FlushResponse> listener, org.apache.http.Header... headers)
public ForceMergeResponse forceMerge(ForceMergeRequest forceMergeRequest, org.apache.http.Header... headers) throws java.io.IOException
java.io.IOException
public void forceMergeAsync(ForceMergeRequest forceMergeRequest, ActionListener<ForceMergeResponse> listener, org.apache.http.Header... headers)
public ClearIndicesCacheResponse clearCache(ClearIndicesCacheRequest clearIndicesCacheRequest, org.apache.http.Header... headers) throws java.io.IOException
java.io.IOException
public void clearCacheAsync(ClearIndicesCacheRequest clearIndicesCacheRequest, ActionListener<ClearIndicesCacheResponse> listener, org.apache.http.Header... headers)
public boolean exists(GetIndexRequest request, org.apache.http.Header... headers) throws java.io.IOException
java.io.IOException
public void existsAsync(GetIndexRequest request, ActionListener<java.lang.Boolean> listener, org.apache.http.Header... headers)
public ResizeResponse shrink(ResizeRequest resizeRequest, org.apache.http.Header... headers) throws java.io.IOException
java.io.IOException
public void shrinkAsync(ResizeRequest resizeRequest, ActionListener<ResizeResponse> listener, org.apache.http.Header... headers)
public ResizeResponse split(ResizeRequest resizeRequest, org.apache.http.Header... headers) throws java.io.IOException
java.io.IOException
public void splitAsync(ResizeRequest resizeRequest, ActionListener<ResizeResponse> listener, org.apache.http.Header... headers)
public RolloverResponse rollover(RolloverRequest rolloverRequest, org.apache.http.Header... headers) throws java.io.IOException
java.io.IOException
public void rolloverAsync(RolloverRequest rolloverRequest, ActionListener<RolloverResponse> listener, org.apache.http.Header... headers)
public UpdateSettingsResponse putSettings(UpdateSettingsRequest updateSettingsRequest, org.apache.http.Header... headers) throws java.io.IOException
java.io.IOException
public void putSettingsAsync(UpdateSettingsRequest updateSettingsRequest, ActionListener<UpdateSettingsResponse> listener, org.apache.http.Header... headers)