Package org.apache.solr.ltr.feature
Class Feature.FeatureWeight.FeatureScorer
- java.lang.Object
-
- org.apache.lucene.search.Scorable
-
- org.apache.lucene.search.Scorer
-
- org.apache.solr.ltr.feature.Feature.FeatureWeight.FeatureScorer
-
- Direct Known Subclasses:
Feature.FeatureWeight.FilterFeatureScorer
,Feature.FeatureWeight.ValueFeatureScorer
,FieldLengthFeature.FieldLengthFeatureWeight.FieldLengthFeatureScorer
,FieldValueFeature.FieldValueFeatureWeight.DefaultValueFieldValueFeatureScorer
,FieldValueFeature.FieldValueFeatureWeight.FieldValueFeatureScorer
,FieldValueFeature.FieldValueFeatureWeight.NumericDocValuesFieldValueFeatureScorer
,FieldValueFeature.FieldValueFeatureWeight.SortedDocValuesFieldValueFeatureScorer
- Enclosing class:
- Feature.FeatureWeight
public abstract class Feature.FeatureWeight.FeatureScorer extends org.apache.lucene.search.Scorer
A 'recipe' for computing a feature
-
-
Constructor Summary
Constructors Constructor Description FeatureScorer(Feature.FeatureWeight weight, org.apache.lucene.search.DocIdSetIterator itr)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
docID()
DocInfo
getDocInfo()
org.apache.lucene.search.DocIdSetIterator
iterator()
abstract float
score()
void
setDocInfo(DocInfo docInfo)
Used to provide context from initial score steps to later reranking steps.-
Methods inherited from class org.apache.lucene.search.Scorer
advanceShallow, getMaxScore, getWeight, twoPhaseIterator
-
-
-
-
Field Detail
-
name
protected final String name
-
itr
protected final org.apache.lucene.search.DocIdSetIterator itr
-
-
Constructor Detail
-
FeatureScorer
public FeatureScorer(Feature.FeatureWeight weight, org.apache.lucene.search.DocIdSetIterator itr)
-
-
Method Detail
-
score
public abstract float score() throws IOException
- Specified by:
score
in classorg.apache.lucene.search.Scorable
- Throws:
IOException
-
setDocInfo
public void setDocInfo(DocInfo docInfo)
Used to provide context from initial score steps to later reranking steps.
-
getDocInfo
public DocInfo getDocInfo()
-
docID
public int docID()
- Specified by:
docID
in classorg.apache.lucene.search.Scorable
-
iterator
public org.apache.lucene.search.DocIdSetIterator iterator()
- Specified by:
iterator
in classorg.apache.lucene.search.Scorer
-
-