Package org.apache.solr.ltr.feature
Class FieldValueFeature.FieldValueFeatureWeight.FieldValueFeatureScorer
- java.lang.Object
-
- org.apache.lucene.search.Scorable
-
- org.apache.lucene.search.Scorer
-
- org.apache.solr.ltr.feature.Feature.FeatureWeight.FeatureScorer
-
- org.apache.solr.ltr.feature.FieldValueFeature.FieldValueFeatureWeight.FieldValueFeatureScorer
-
- Enclosing class:
- FieldValueFeature.FieldValueFeatureWeight
public class FieldValueFeature.FieldValueFeatureWeight.FieldValueFeatureScorer extends Feature.FeatureWeight.FeatureScorer
A FeatureScorer that reads the stored value for a field
-
-
Field Summary
-
Fields inherited from class org.apache.solr.ltr.feature.Feature.FeatureWeight.FeatureScorer
itr, name
-
-
Constructor Summary
Constructors Constructor Description FieldValueFeatureScorer(Feature.FeatureWeight weight, org.apache.lucene.index.LeafReaderContext context, org.apache.lucene.search.DocIdSetIterator itr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getMaxScore(int upTo)
float
score()
-
Methods inherited from class org.apache.solr.ltr.feature.Feature.FeatureWeight.FeatureScorer
docID, getDocInfo, iterator, setDocInfo
-
Methods inherited from class org.apache.lucene.search.Scorer
advanceShallow, getWeight, twoPhaseIterator
-
-
-
-
Constructor Detail
-
FieldValueFeatureScorer
public FieldValueFeatureScorer(Feature.FeatureWeight weight, org.apache.lucene.index.LeafReaderContext context, org.apache.lucene.search.DocIdSetIterator itr)
-
-
Method Detail
-
score
public float score() throws IOException
- Specified by:
score
in classFeature.FeatureWeight.FeatureScorer
- Throws:
IOException
-
getMaxScore
public float getMaxScore(int upTo) throws IOException
- Specified by:
getMaxScore
in classorg.apache.lucene.search.Scorer
- Throws:
IOException
-
-