org.elasticsearch.index.service
Interface IndexService
- All Superinterfaces:
- IndexComponent, java.lang.Iterable<IndexShard>
- All Known Implementing Classes:
- InternalIndexService
public interface IndexService
- extends IndexComponent, java.lang.Iterable<IndexShard>
Methods inherited from interface java.lang.Iterable |
iterator |
injector
Injector injector()
gateway
IndexGateway gateway()
cache
IndexCache cache()
percolateService
PercolatorService percolateService()
analysisService
AnalysisService analysisService()
mapperService
MapperService mapperService()
queryParserService
IndexQueryParserService queryParserService()
similarityService
SimilarityService similarityService()
aliasesService
IndexAliasesService aliasesService()
engine
IndexEngine engine()
store
IndexStore store()
createShard
IndexShard createShard(int sShardId)
throws ElasticSearchException
- Throws:
ElasticSearchException
cleanShard
void cleanShard(int shardId,
java.lang.String reason)
throws ElasticSearchException
- Cleans the shard locally, does not touch the gateway!.
- Throws:
ElasticSearchException
removeShard
void removeShard(int shardId,
java.lang.String reason)
throws ElasticSearchException
- Removes the shard, does not delete local data or the gateway.
- Throws:
ElasticSearchException
numberOfShards
int numberOfShards()
shardIds
org.elasticsearch.common.collect.ImmutableSet<java.lang.Integer> shardIds()
hasShard
boolean hasShard(int shardId)
shard
IndexShard shard(int shardId)
shardSafe
IndexShard shardSafe(int shardId)
throws IndexShardMissingException
- Throws:
IndexShardMissingException
shardInjector
Injector shardInjector(int shardId)
shardInjectorSafe
Injector shardInjectorSafe(int shardId)
throws IndexShardMissingException
- Throws:
IndexShardMissingException