Package org.apache.solr.ltr.feature
Class FieldValueFeature.FieldValueFeatureWeight.SortedDocValuesFieldValueFeatureScorer
- 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.SortedDocValuesFieldValueFeatureScorer
-
- Enclosing class:
- FieldValueFeature.FieldValueFeatureWeight
public final class FieldValueFeature.FieldValueFeatureWeight.SortedDocValuesFieldValueFeatureScorer extends Feature.FeatureWeight.FeatureScorer
A FeatureScorer that reads the sorted docValues for a field
-
-
Field Summary
-
Fields inherited from class org.apache.solr.ltr.feature.Feature.FeatureWeight.FeatureScorer
itr, name
-
-
Constructor Summary
Constructors Constructor Description SortedDocValuesFieldValueFeatureScorer(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
-
SortedDocValuesFieldValueFeatureScorer
public SortedDocValuesFieldValueFeatureScorer(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
-
-