Class SearchProgressListener

java.lang.Object
org.elasticsearch.action.search.SearchProgressListener
Direct Known Subclasses:
SearchProgressActionListener

public abstract class SearchProgressListener
extends java.lang.Object
A listener that allows to track progress of the SearchAction.
  • Field Summary

    Fields
    Modifier and Type Field Description
    static SearchProgressListener NOOP  
  • Constructor Summary

    Constructors
    Constructor Description
    SearchProgressListener()  
  • Method Summary

    Modifier and Type Method Description
    protected void notifyFinalReduce​(java.util.List<SearchShard> shards, org.apache.lucene.search.TotalHits totalHits, InternalAggregations aggs, int reducePhase)  
    protected void onFetchFailure​(int shardIndex, SearchShardTarget shardTarget, java.lang.Exception exc)
    Executed when a shard reports a fetch failure.
    protected void onFetchResult​(int shardIndex)
    Executed when a shard returns a fetch result.
    protected void onFinalReduce​(java.util.List<SearchShard> shards, org.apache.lucene.search.TotalHits totalHits, InternalAggregations aggs, int reducePhase)
    Executed once when the final reduce is created.
    protected void onListShards​(java.util.List<SearchShard> shards, java.util.List<SearchShard> skippedShards, SearchResponse.Clusters clusters, boolean fetchPhase)
    Executed when shards are ready to be queried.
    protected void onPartialReduce​(java.util.List<SearchShard> shards, org.apache.lucene.search.TotalHits totalHits, InternalAggregations aggs, int reducePhase)
    Executed when a partial reduce is created.
    protected void onQueryFailure​(int shardIndex, SearchShardTarget shardTarget, java.lang.Exception exc)
    Executed when a shard reports a query failure.
    protected void onQueryResult​(int shardIndex)
    Executed when a shard returns a query result.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait