org.elasticsearch.index.search.stats
Class ShardSearchService

java.lang.Object
  extended by org.elasticsearch.index.shard.AbstractIndexShardComponent
      extended by org.elasticsearch.index.search.stats.ShardSearchService
All Implemented Interfaces:
IndexShardComponent

public class ShardSearchService
extends AbstractIndexShardComponent


Field Summary
 
Fields inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent
componentSettings, indexSettings, logger, shardId
 
Constructor Summary
ShardSearchService(ShardId shardId, Settings indexSettings, ShardSlowLogSearchService slowLogSearchService)
           
 
Method Summary
 void clear()
           
 void onFailedFetchPhase(SearchContext searchContext)
           
 void onFailedQueryPhase(SearchContext searchContext)
           
 void onFetchPhase(SearchContext searchContext, long tookInNanos)
           
 void onPreFetchPhase(SearchContext searchContext)
           
 void onPreQueryPhase(SearchContext searchContext)
           
 void onQueryPhase(SearchContext searchContext, long tookInNanos)
           
 SearchStats stats(String... groups)
          Returns the stats, including group specific stats.
 
Methods inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent
indexSettings, managementGroupName, nodeName, shardId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShardSearchService

@Inject
public ShardSearchService(ShardId shardId,
                                 @IndexSettings
                                 Settings indexSettings,
                                 ShardSlowLogSearchService slowLogSearchService)
Method Detail

stats

public SearchStats stats(String... groups)
Returns the stats, including group specific stats. If the groups are null/0 length, then nothing is returned for them. If they are set, then only groups provided will be returned, or _all for all groups.


onPreQueryPhase

public void onPreQueryPhase(SearchContext searchContext)

onFailedQueryPhase

public void onFailedQueryPhase(SearchContext searchContext)

onQueryPhase

public void onQueryPhase(SearchContext searchContext,
                         long tookInNanos)

onPreFetchPhase

public void onPreFetchPhase(SearchContext searchContext)

onFailedFetchPhase

public void onFailedFetchPhase(SearchContext searchContext)

onFetchPhase

public void onFetchPhase(SearchContext searchContext,
                         long tookInNanos)

clear

public void clear()


Copyright © 2009-2012. All Rights Reserved.