org.elasticsearch.indices
Interface IndicesService
- All Superinterfaces:
- CloseableComponent, java.lang.Iterable<IndexService>, LifecycleComponent<IndicesService>
- All Known Implementing Classes:
- InternalIndicesService
@ThreadSafe
public interface IndicesService
- extends java.lang.Iterable<IndexService>, LifecycleComponent<IndicesService>
Methods inherited from interface java.lang.Iterable |
iterator |
changesAllowed
boolean changesAllowed()
- Returns true if changes (adding / removing) indices, shards and so on are allowed.
hasIndex
boolean hasIndex(java.lang.String index)
indicesLifecycle
IndicesLifecycle indicesLifecycle()
indices
java.util.Set<java.lang.String> indices()
indexService
IndexService indexService(java.lang.String index)
indexServiceSafe
IndexService indexServiceSafe(java.lang.String index)
throws IndexMissingException
- Throws:
IndexMissingException
searchShards
GroupShardsIterator searchShards(ClusterState clusterState,
java.lang.String[] indices,
java.lang.String queryHint)
throws ElasticSearchException
- Gets all the "searchable" shards on all the given indices.
- Throws:
ElasticSearchException
- See Also:
OperationRouting.searchShards(org.elasticsearch.cluster.ClusterState, String)
createIndex
IndexService createIndex(java.lang.String index,
Settings settings,
java.lang.String localNodeId)
throws ElasticSearchException
- Throws:
ElasticSearchException
deleteIndex
void deleteIndex(java.lang.String index)
throws ElasticSearchException
- Throws:
ElasticSearchException