net.conquiris.lucene.search
Class ScoredTotalHitCountCollector

java.lang.Object
  extended by org.apache.lucene.search.Collector
      extended by org.apache.lucene.search.TotalHitCountCollector
          extended by net.conquiris.lucene.search.ScoredTotalHitCountCollector

public class ScoredTotalHitCountCollector
extends TotalHitCountCollector

A collector that counts the number of hits and keeps track of the maximum score.

Author:
Andres Rodriguez

Constructor Summary
ScoredTotalHitCountCollector()
          Constructor.
 
Method Summary
 void collect(int doc)
           
 float getMaxScore()
          Returns the maximum collected score.
 void setScorer(Scorer scorer)
           
 
Methods inherited from class org.apache.lucene.search.TotalHitCountCollector
acceptsDocsOutOfOrder, getTotalHits, setNextReader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScoredTotalHitCountCollector

public ScoredTotalHitCountCollector()
Constructor.

Method Detail

collect

public void collect(int doc)
Overrides:
collect in class TotalHitCountCollector

setScorer

public void setScorer(Scorer scorer)
Overrides:
setScorer in class TotalHitCountCollector

getMaxScore

public final float getMaxScore()
Returns the maximum collected score.

Returns:
The maximum collected score.


Copyright © 2013 Derquinse Projects. All Rights Reserved.