net.conquiris.lucene.search
Class ScoredTotalHitCountCollector
java.lang.Object
org.apache.lucene.search.Collector
org.apache.lucene.search.TotalHitCountCollector
net.conquiris.lucene.search.ScoredTotalHitCountCollector
public class ScoredTotalHitCountCollector
- extends org.apache.lucene.search.TotalHitCountCollector
A collector that counts the number of hits and keeps track of the maximum score.
- Author:
- Andres Rodriguez
|
Method Summary |
void |
collect(int doc)
|
float |
getMaxScore()
Returns the maximum collected score. |
void |
setScorer(org.apache.lucene.search.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 |
ScoredTotalHitCountCollector
public ScoredTotalHitCountCollector()
- Constructor.
collect
public void collect(int doc)
- Overrides:
collect in class org.apache.lucene.search.TotalHitCountCollector
setScorer
public void setScorer(org.apache.lucene.search.Scorer scorer)
- Overrides:
setScorer in class org.apache.lucene.search.TotalHitCountCollector
getMaxScore
public final float getMaxScore()
- Returns the maximum collected score.
- Returns:
- The maximum collected score.
Copyright © 2012 Derquinse Projects.. All Rights Reserved.