Package org.apache.solr.ltr.scoring
Class FeatureTraversalScorer
java.lang.Object
org.apache.lucene.search.Scorable
org.apache.lucene.search.Scorer
org.apache.solr.ltr.scoring.FeatureTraversalScorer
- Direct Known Subclasses:
MultiFeaturesScorer,SingleFeatureScorer
public abstract class FeatureTraversalScorer
extends org.apache.lucene.search.Scorer
This class is responsible for extracting features and using them to score the document.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.search.Scorable
org.apache.lucene.search.Scorable.ChildScorable -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected LTRScoringQuery.FeatureInfo[]protected Feature.FeatureWeight[]protected FeatureExtractorprotected LTRScoringModelprotected LTRScoringQuery.ModelWeight -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidabstract intabstract DocInfofloatgetMaxScore(int upTo) abstract intvoidreset()floatscore()Methods inherited from class org.apache.lucene.search.Scorer
advanceShallow, docID, iterator, nextDocsAndScores, twoPhaseIteratorMethods inherited from class org.apache.lucene.search.Scorable
getChildren, setMinCompetitiveScore, smoothingScore
-
Field Details
-
featureExtractor
-
allFeaturesInStore
-
ltrScoringModel
-
extractedFeatureWeights
-
modelWeight
-
-
Constructor Details
-
FeatureTraversalScorer
public FeatureTraversalScorer()
-
-
Method Details
-
getActiveDoc
public abstract int getActiveDoc() -
getTargetDoc
public abstract int getTargetDoc() -
getDocInfo
-
reset
public void reset() -
fillFeaturesInfo
- Throws:
IOException
-
score
- Specified by:
scorein classorg.apache.lucene.search.Scorable- Throws:
IOException
-
getMaxScore
public float getMaxScore(int upTo) - Specified by:
getMaxScorein classorg.apache.lucene.search.Scorer
-