org.elasticsearch.client
Interface IndicesAdminClient

All Known Subinterfaces:
InternalIndicesAdminClient
All Known Implementing Classes:
AbstractIndicesAdminClient, InternalTransportIndicesAdminClient, NodeIndicesAdminClient

public interface IndicesAdminClient

Administrative actions/operations against indices.

See Also:
AdminClient.indices()

Method Summary
 ActionFuture<IndicesAliasesResponse> aliases(IndicesAliasesRequest request)
          Allows to add/remove aliases from indices.
 void aliases(IndicesAliasesRequest request, ActionListener<IndicesAliasesResponse> listener)
          Allows to add/remove aliases from indices.
 ActionFuture<ClearIndicesCacheResponse> clearCache(ClearIndicesCacheRequest request)
          Clear indices cache.
 void clearCache(ClearIndicesCacheRequest request, ActionListener<ClearIndicesCacheResponse> listener)
          Clear indices cache.
 ActionFuture<CloseIndexResponse> close(CloseIndexRequest request)
          Closes an index based on the index name.
 void close(CloseIndexRequest request, ActionListener<CloseIndexResponse> listener)
          Closes an index based on the index name.
 ActionFuture<CreateIndexResponse> create(CreateIndexRequest request)
          Creates an index using an explicit request allowing to specify the settings of the index.
 void create(CreateIndexRequest request, ActionListener<CreateIndexResponse> listener)
          Creates an index using an explicit request allowing to specify the settings of the index.
 ActionFuture<DeleteIndexResponse> delete(DeleteIndexRequest request)
          Deletes an index based on the index name.
 void delete(DeleteIndexRequest request, ActionListener<DeleteIndexResponse> listener)
          Deletes an index based on the index name.
 ActionFuture<DeleteMappingResponse> deleteMapping(DeleteMappingRequest request)
          Deletes mapping (and all its data) from one or more indices.
 void deleteMapping(DeleteMappingRequest request, ActionListener<DeleteMappingResponse> listener)
          Deletes mapping definition for a type into one or more indices.
 ActionFuture<FlushResponse> flush(FlushRequest request)
          Explicitly flush one or more indices (releasing memory from the node).
 void flush(FlushRequest request, ActionListener<FlushResponse> listener)
          Explicitly flush one or more indices (releasing memory from the node).
 ActionFuture<GatewaySnapshotResponse> gatewaySnapshot(GatewaySnapshotRequest request)
          Explicitly perform gateway snapshot for one or more indices.
 void gatewaySnapshot(GatewaySnapshotRequest request, ActionListener<GatewaySnapshotResponse> listener)
          Explicitly perform gateway snapshot for one or more indices.
 ActionFuture<OpenIndexResponse> open(OpenIndexRequest request)
          OPen an index based on the index name.
 void open(OpenIndexRequest request, ActionListener<OpenIndexResponse> listener)
          Open an index based on the index name.
 ActionFuture<OptimizeResponse> optimize(OptimizeRequest request)
          Explicitly optimize one or more indices into a the number of segments.
 void optimize(OptimizeRequest request, ActionListener<OptimizeResponse> listener)
          Explicitly optimize one or more indices into a the number of segments.
 IndicesAliasesRequestBuilder prepareAliases()
          Allows to add/remove aliases from indices.
 ClearIndicesCacheRequestBuilder prepareClearCache(java.lang.String... indices)
          Clear indices cache.
 CloseIndexRequestBuilder prepareClose(java.lang.String index)
          Closes an index based on the index name.
 CreateIndexRequestBuilder prepareCreate(java.lang.String index)
          Creates an index using an explicit request allowing to specify the settings of the index.
 DeleteIndexRequestBuilder prepareDelete(java.lang.String index)
          Deletes an index based on the index name.
 DeleteMappingRequestBuilder prepareDeleteMapping(java.lang.String... indices)
          Deletes mapping definition for a type into one or more indices.
 FlushRequestBuilder prepareFlush(java.lang.String... indices)
          Explicitly flush one or more indices (releasing memory from the node).
 GatewaySnapshotRequestBuilder prepareGatewaySnapshot(java.lang.String... indices)
          Explicitly perform gateway snapshot for one or more indices.
 OpenIndexRequestBuilder prepareOpen(java.lang.String index)
          Opens an index based on the index name.
 OptimizeRequestBuilder prepareOptimize(java.lang.String... indices)
          Explicitly optimize one or more indices into a the number of segments.
 PutMappingRequestBuilder preparePutMapping(java.lang.String... indices)
          Add mapping definition for a type into one or more indices.
 RefreshRequestBuilder prepareRefresh(java.lang.String... indices)
          Explicitly refresh one or more indices (making the content indexed since the last refresh searchable).
 IndicesStatusRequestBuilder prepareStatus(java.lang.String... indices)
          The status of one or more indices.
 UpdateSettingsRequestBuilder prepareUpdateSettings(java.lang.String... indices)
          Update indices settings.
 ActionFuture<PutMappingResponse> putMapping(PutMappingRequest request)
          Add mapping definition for a type into one or more indices.
 void putMapping(PutMappingRequest request, ActionListener<PutMappingResponse> listener)
          Add mapping definition for a type into one or more indices.
 ActionFuture<RefreshResponse> refresh(RefreshRequest request)
          Explicitly refresh one or more indices (making the content indexed since the last refresh searchable).
 void refresh(RefreshRequest request, ActionListener<RefreshResponse> listener)
          Explicitly refresh one or more indices (making the content indexed since the last refresh searchable).
 ActionFuture<IndicesStatusResponse> status(IndicesStatusRequest request)
          The status of one or more indices.
 void status(IndicesStatusRequest request, ActionListener<IndicesStatusResponse> listener)
          The status of one or more indices.
 ActionFuture<UpdateSettingsResponse> updateSettings(UpdateSettingsRequest request)
          Updates settings of one or more indices.
 void updateSettings(UpdateSettingsRequest request, ActionListener<UpdateSettingsResponse> listener)
          Updates settings of one or more indices.
 

Method Detail

status

ActionFuture<IndicesStatusResponse> status(IndicesStatusRequest request)
The status of one or more indices.

Parameters:
request - The indices status request
Returns:
The result future
See Also:
Requests.indicesStatusRequest(String...)

status

void status(IndicesStatusRequest request,
            ActionListener<IndicesStatusResponse> listener)
The status of one or more indices.

Parameters:
request - The indices status request
listener - A listener to be notified with a result
See Also:
Requests.indicesStatusRequest(String...)

prepareStatus

IndicesStatusRequestBuilder prepareStatus(java.lang.String... indices)
The status of one or more indices.


create

ActionFuture<CreateIndexResponse> create(CreateIndexRequest request)
Creates an index using an explicit request allowing to specify the settings of the index.

Parameters:
request - The create index request
Returns:
The result future
See Also:
Requests.createIndexRequest(String)

create

void create(CreateIndexRequest request,
            ActionListener<CreateIndexResponse> listener)
Creates an index using an explicit request allowing to specify the settings of the index.

Parameters:
request - The create index request
listener - A listener to be notified with a result
See Also:
Requests.createIndexRequest(String)

prepareCreate

CreateIndexRequestBuilder prepareCreate(java.lang.String index)
Creates an index using an explicit request allowing to specify the settings of the index.

Parameters:
index - The index name to create

delete

ActionFuture<DeleteIndexResponse> delete(DeleteIndexRequest request)
Deletes an index based on the index name.

Parameters:
request - The delete index request
Returns:
The result future
See Also:
Requests.deleteIndexRequest(String)

delete

void delete(DeleteIndexRequest request,
            ActionListener<DeleteIndexResponse> listener)
Deletes an index based on the index name.

Parameters:
request - The delete index request
listener - A listener to be notified with a result
See Also:
Requests.deleteIndexRequest(String)

prepareDelete

DeleteIndexRequestBuilder prepareDelete(java.lang.String index)
Deletes an index based on the index name.

Parameters:
index - The index name to delete

close

ActionFuture<CloseIndexResponse> close(CloseIndexRequest request)
Closes an index based on the index name.

Parameters:
request - The close index request
Returns:
The result future
See Also:
Requests.closeIndexRequest(String)

close

void close(CloseIndexRequest request,
           ActionListener<CloseIndexResponse> listener)
Closes an index based on the index name.

Parameters:
request - The close index request
listener - A listener to be notified with a result
See Also:
Requests.closeIndexRequest(String)

prepareClose

CloseIndexRequestBuilder prepareClose(java.lang.String index)
Closes an index based on the index name.

Parameters:
index - The index name to close

open

ActionFuture<OpenIndexResponse> open(OpenIndexRequest request)
OPen an index based on the index name.

Parameters:
request - The close index request
Returns:
The result future
See Also:
Requests.openIndexRequest(String)

open

void open(OpenIndexRequest request,
          ActionListener<OpenIndexResponse> listener)
Open an index based on the index name.

Parameters:
request - The close index request
listener - A listener to be notified with a result
See Also:
Requests.openIndexRequest(String)

prepareOpen

OpenIndexRequestBuilder prepareOpen(java.lang.String index)
Opens an index based on the index name.

Parameters:
index - The index name to close

refresh

ActionFuture<RefreshResponse> refresh(RefreshRequest request)
Explicitly refresh one or more indices (making the content indexed since the last refresh searchable).

Parameters:
request - The refresh request
Returns:
The result future
See Also:
Requests.refreshRequest(String...)

refresh

void refresh(RefreshRequest request,
             ActionListener<RefreshResponse> listener)
Explicitly refresh one or more indices (making the content indexed since the last refresh searchable).

Parameters:
request - The refresh request
listener - A listener to be notified with a result
See Also:
Requests.refreshRequest(String...)

prepareRefresh

RefreshRequestBuilder prepareRefresh(java.lang.String... indices)
Explicitly refresh one or more indices (making the content indexed since the last refresh searchable).


flush

ActionFuture<FlushResponse> flush(FlushRequest request)
Explicitly flush one or more indices (releasing memory from the node).

Parameters:
request - The flush request
Returns:
A result future
See Also:
Requests.flushRequest(String...)

flush

void flush(FlushRequest request,
           ActionListener<FlushResponse> listener)
Explicitly flush one or more indices (releasing memory from the node).

Parameters:
request - The flush request
listener - A listener to be notified with a result
See Also:
Requests.flushRequest(String...)

prepareFlush

FlushRequestBuilder prepareFlush(java.lang.String... indices)
Explicitly flush one or more indices (releasing memory from the node).


optimize

ActionFuture<OptimizeResponse> optimize(OptimizeRequest request)
Explicitly optimize one or more indices into a the number of segments.

Parameters:
request - The optimize request
Returns:
A result future
See Also:
Requests.optimizeRequest(String...)

optimize

void optimize(OptimizeRequest request,
              ActionListener<OptimizeResponse> listener)
Explicitly optimize one or more indices into a the number of segments.

Parameters:
request - The optimize request
listener - A listener to be notified with a result
See Also:
Requests.optimizeRequest(String...)

prepareOptimize

OptimizeRequestBuilder prepareOptimize(java.lang.String... indices)
Explicitly optimize one or more indices into a the number of segments.


putMapping

ActionFuture<PutMappingResponse> putMapping(PutMappingRequest request)
Add mapping definition for a type into one or more indices.

Parameters:
request - The create mapping request
Returns:
A result future
See Also:
Requests.putMappingRequest(String...)

putMapping

void putMapping(PutMappingRequest request,
                ActionListener<PutMappingResponse> listener)
Add mapping definition for a type into one or more indices.

Parameters:
request - The create mapping request
listener - A listener to be notified with a result
See Also:
Requests.putMappingRequest(String...)

preparePutMapping

PutMappingRequestBuilder preparePutMapping(java.lang.String... indices)
Add mapping definition for a type into one or more indices.


deleteMapping

ActionFuture<DeleteMappingResponse> deleteMapping(DeleteMappingRequest request)
Deletes mapping (and all its data) from one or more indices.

Parameters:
request - The delete mapping request
Returns:
A result future
See Also:
Requests.deleteMappingRequest(String...)

deleteMapping

void deleteMapping(DeleteMappingRequest request,
                   ActionListener<DeleteMappingResponse> listener)
Deletes mapping definition for a type into one or more indices.

Parameters:
request - The delete mapping request
listener - A listener to be notified with a result
See Also:
Requests.deleteMappingRequest(String...)

prepareDeleteMapping

DeleteMappingRequestBuilder prepareDeleteMapping(java.lang.String... indices)
Deletes mapping definition for a type into one or more indices.


gatewaySnapshot

ActionFuture<GatewaySnapshotResponse> gatewaySnapshot(GatewaySnapshotRequest request)
Explicitly perform gateway snapshot for one or more indices.

Parameters:
request - The gateway snapshot request
Returns:
The result future
See Also:
Requests.gatewaySnapshotRequest(String...)

gatewaySnapshot

void gatewaySnapshot(GatewaySnapshotRequest request,
                     ActionListener<GatewaySnapshotResponse> listener)
Explicitly perform gateway snapshot for one or more indices.

Parameters:
request - The gateway snapshot request
listener - A listener to be notified with a result
See Also:
Requests.gatewaySnapshotRequest(String...)

prepareGatewaySnapshot

GatewaySnapshotRequestBuilder prepareGatewaySnapshot(java.lang.String... indices)
Explicitly perform gateway snapshot for one or more indices.


aliases

ActionFuture<IndicesAliasesResponse> aliases(IndicesAliasesRequest request)
Allows to add/remove aliases from indices.

Parameters:
request - The index aliases request
Returns:
The result future
See Also:
Requests.indexAliasesRequest()

aliases

void aliases(IndicesAliasesRequest request,
             ActionListener<IndicesAliasesResponse> listener)
Allows to add/remove aliases from indices.

Parameters:
request - The index aliases request
listener - A listener to be notified with a result
See Also:
Requests.indexAliasesRequest()

prepareAliases

IndicesAliasesRequestBuilder prepareAliases()
Allows to add/remove aliases from indices.


clearCache

ActionFuture<ClearIndicesCacheResponse> clearCache(ClearIndicesCacheRequest request)
Clear indices cache.

Parameters:
request - The clear indices cache request
Returns:
The result future
See Also:
Requests.clearIndicesCacheRequest(String...)

clearCache

void clearCache(ClearIndicesCacheRequest request,
                ActionListener<ClearIndicesCacheResponse> listener)
Clear indices cache.

Parameters:
request - The clear indices cache request
listener - A listener to be notified with a result
See Also:
Requests.clearIndicesCacheRequest(String...)

prepareClearCache

ClearIndicesCacheRequestBuilder prepareClearCache(java.lang.String... indices)
Clear indices cache.


updateSettings

ActionFuture<UpdateSettingsResponse> updateSettings(UpdateSettingsRequest request)
Updates settings of one or more indices.

Parameters:
request - the update settings request
Returns:
The result future

updateSettings

void updateSettings(UpdateSettingsRequest request,
                    ActionListener<UpdateSettingsResponse> listener)
Updates settings of one or more indices.

Parameters:
request - the update settings request
listener - A listener to be notified with the response

prepareUpdateSettings

UpdateSettingsRequestBuilder prepareUpdateSettings(java.lang.String... indices)
Update indices settings.