Package org.apache.solr.search
Class MaxScoreCollector
- java.lang.Object
-
- org.apache.lucene.search.SimpleCollector
-
- org.apache.solr.search.MaxScoreCollector
-
- All Implemented Interfaces:
org.apache.lucene.search.Collector,org.apache.lucene.search.LeafCollector
public class MaxScoreCollector extends org.apache.lucene.search.SimpleCollectorACollectorfor the maximum score value.
-
-
Constructor Summary
Constructors Constructor Description MaxScoreCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcollect(int doc)floatgetMaxScore()org.apache.lucene.search.ScoreModescoreMode()voidsetScorer(org.apache.lucene.search.Scorable scorer)-
Methods inherited from class org.apache.lucene.search.SimpleCollector
doSetNextReader, getLeafCollector
-
-
-
-
Method Detail
-
getMaxScore
public float getMaxScore()
-
scoreMode
public org.apache.lucene.search.ScoreMode scoreMode()
-
setScorer
public void setScorer(org.apache.lucene.search.Scorable scorer) throws IOException- Specified by:
setScorerin interfaceorg.apache.lucene.search.LeafCollector- Overrides:
setScorerin classorg.apache.lucene.search.SimpleCollector- Throws:
IOException
-
collect
public void collect(int doc) throws IOException- Specified by:
collectin interfaceorg.apache.lucene.search.LeafCollector- Specified by:
collectin classorg.apache.lucene.search.SimpleCollector- Throws:
IOException
-
-