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)
           
 IndexEngine engine()
           
 IndexGateway gateway()
           
 boolean hasShard(int shardId)
           
 org.elasticsearch.common.inject.Injector injector()
           
 MapperService mapperService()
           
 int numberOfShards()
           
 IndexQueryParserService queryParserService()
           
 void removeShard(int shardId)
          Removes the shard, does not delete local data or the gateway.
 IndexShard shard(int shardId)
           
 org.elasticsearch.common.collect.ImmutableSet<java.lang.Integer> shardIds()
           
 org.elasticsearch.common.inject.Injector shardInjector(int shardId)
           
 org.elasticsearch.common.inject.Injector shardInjectorSafe(int shardId)
           
 IndexShard shardSafe(int shardId)
           
 SimilarityService similarityService()
           
 IndexStore store()
           
 
Methods inherited from interface org.elasticsearch.index.IndexComponent
index
 
Methods inherited from interface java.lang.Iterable
iterator
 
Methods inherited from interface org.elasticsearch.index.CloseableIndexComponent
close
 

Method Detail

injector

org.elasticsearch.common.inject.Injector injector()

gateway

IndexGateway gateway()

cache

IndexCache cache()

mapperService

MapperService mapperService()

queryParserService

IndexQueryParserService queryParserService()

similarityService

SimilarityService similarityService()

engine

IndexEngine engine()

store

IndexStore store()

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

removeShard

void removeShard(int shardId)
                 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

org.elasticsearch.common.inject.Injector shardInjector(int shardId)

shardInjectorSafe

org.elasticsearch.common.inject.Injector shardInjectorSafe(int shardId)
                                                           throws IndexShardMissingException
Throws:
IndexShardMissingException