Package org.apache.solr.ltr
Class LTRScoringQuery.ModelWeight.ModelScorer
- java.lang.Object
-
- org.apache.lucene.search.Scorable
-
- org.apache.lucene.search.Scorer
-
- org.apache.solr.ltr.LTRScoringQuery.ModelWeight.ModelScorer
-
- Enclosing class:
- LTRScoringQuery.ModelWeight
public class LTRScoringQuery.ModelWeight.ModelScorer extends org.apache.lucene.search.Scorer
-
-
Constructor Summary
Constructors Constructor Description ModelScorer(org.apache.lucene.search.Weight weight, List<Feature.FeatureWeight.FeatureScorer> featureScorers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
docID()
Collection<org.apache.lucene.search.Scorable.ChildScorable>
getChildren()
DocInfo
getDocInfo()
float
getMaxScore(int upTo)
org.apache.lucene.search.DocIdSetIterator
iterator()
float
score()
-
Methods inherited from class org.apache.lucene.search.Scorer
advanceShallow, getWeight, twoPhaseIterator
-
-
-
-
Constructor Detail
-
ModelScorer
public ModelScorer(org.apache.lucene.search.Weight weight, List<Feature.FeatureWeight.FeatureScorer> featureScorers)
-
-
Method Detail
-
getDocInfo
public DocInfo getDocInfo()
-
getChildren
public Collection<org.apache.lucene.search.Scorable.ChildScorable> getChildren() throws IOException
- Overrides:
getChildren
in classorg.apache.lucene.search.Scorable
- Throws:
IOException
-
docID
public int docID()
- Specified by:
docID
in classorg.apache.lucene.search.Scorable
-
score
public float score() throws IOException
- Specified by:
score
in classorg.apache.lucene.search.Scorable
- Throws:
IOException
-
getMaxScore
public float getMaxScore(int upTo) throws IOException
- Specified by:
getMaxScore
in classorg.apache.lucene.search.Scorer
- Throws:
IOException
-
iterator
public org.apache.lucene.search.DocIdSetIterator iterator()
- Specified by:
iterator
in classorg.apache.lucene.search.Scorer
-
-