org.elasticsearch.index.service
Interface IndexService

All Superinterfaces:
CloseableIndexComponent, IndexComponent, java.lang.Iterable<IndexShard>
All Known Implementing Classes:
InternalIndexService

public interface IndexService
extends IndexComponent, java.lang.Iterable<IndexShard>, CloseableIndexComponent


Method Summary
 IndexCache cache()
           
 void cleanShard(int shardId)
          Cleans the shard locally, does not touch the gateway!.
 IndexShard createShard(int sShardId)
           
 boolean hasShard(int shardId)
           
 Injector injector()
           
 MapperService mapperService()
           
 int numberOfShards()
           
 OperationRouting operationRouting()
           
 IndexQueryParserService queryParserService()
           
 IndexShard shard(int shardId)
           
 java.util.Set<java.lang.Integer> shardIds()
           
 Injector shardInjector(int shardId)
           
 Injector shardInjectorSafe(int shardId)
           
 IndexShard shardSafe(int shardId)
           
 SimilarityService similarityService()
           
 
Methods inherited from interface org.elasticsearch.index.IndexComponent
index
 
Methods inherited from interface java.lang.Iterable
iterator
 
Methods inherited from interface org.elasticsearch.util.component.CloseableIndexComponent
close
 

Method Detail

injector

Injector injector()

cache

IndexCache cache()

operationRouting

OperationRouting operationRouting()

mapperService

MapperService mapperService()

queryParserService

IndexQueryParserService queryParserService()

similarityService

SimilarityService similarityService()

createShard

IndexShard createShard(int sShardId)
                       throws ElasticSearchException
Throws:
ElasticSearchException

cleanShard

void cleanShard(int shardId)
                throws ElasticSearchException
Cleans the shard locally, does not touch the gateway!.

Throws:
ElasticSearchException

numberOfShards

int numberOfShards()

shardIds

java.util.Set<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