org.elasticsearch.index.service
Interface IndexService

All Superinterfaces:
IndexComponent, Iterable<IndexShard>
All Known Implementing Classes:
InternalIndexService

public interface IndexService
extends IndexComponent, Iterable<IndexShard>


Method Summary
 IndexAliasesService aliasesService()
           
 AnalysisService analysisService()
           
 IndexCache cache()
           
 void cleanShard(int shardId, String reason)
          Cleans the shard locally, does not touch the gateway!.
 IndexShard createShard(int sShardId)
           
 IndexEngine engine()
           
 IndexGateway gateway()
           
 boolean hasShard(int shardId)
           
 Injector injector()
           
 MapperService mapperService()
           
 int numberOfShards()
           
 PercolatorService percolateService()
           
 IndexQueryParserService queryParserService()
           
 void removeShard(int shardId, String reason)
          Removes the shard, does not delete local data or the gateway.
 IndexSettingsService settingsService()
           
 IndexShard shard(int shardId)
           
 com.google.common.collect.ImmutableSet<Integer> shardIds()
           
 Injector shardInjector(int shardId)
           
 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
 

Method Detail

injector

Injector injector()

gateway

IndexGateway gateway()

cache

IndexCache cache()

settingsService

IndexSettingsService settingsService()

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,
                String reason)
                throws ElasticSearchException
Cleans the shard locally, does not touch the gateway!.

Throws:
ElasticSearchException

removeShard

void removeShard(int shardId,
                 String reason)
                 throws ElasticSearchException
Removes the shard, does not delete local data or the gateway.

Throws:
ElasticSearchException

numberOfShards

int numberOfShards()

shardIds

com.google.common.collect.ImmutableSet<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


Copyright © 2009-2012. All Rights Reserved.