Package org.apache.solr.ltr.feature
Class Feature.FeatureWeight.ValueFeatureScorer
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.Feature.FeatureWeight.ValueFeatureScorer
- Enclosing class:
Feature.FeatureWeight
public static class Feature.FeatureWeight.ValueFeatureScorer
extends Feature.FeatureWeight.FeatureScorer
Default FeatureScorer class that returns the score passed in. Can be used as a simple
ValueFeature, or to return a default scorer in case an underlying feature's scorer is null.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.search.Scorable
org.apache.lucene.search.Scorable.ChildScorable -
Field Summary
Fields inherited from class org.apache.solr.ltr.feature.Feature.FeatureWeight.FeatureScorer
itr, name -
Constructor Summary
ConstructorsConstructorDescriptionValueFeatureScorer(Feature.FeatureWeight weight, float constScore, org.apache.lucene.search.DocIdSetIterator itr) -
Method Summary
Methods inherited from class org.apache.solr.ltr.feature.Feature.FeatureWeight.FeatureScorer
docID, getDocInfo, getWeight, iterator, setDocInfoMethods inherited from class org.apache.lucene.search.Scorer
advanceShallow, nextDocsAndScores, twoPhaseIteratorMethods inherited from class org.apache.lucene.search.Scorable
getChildren, setMinCompetitiveScore, smoothingScore
-
Constructor Details
-
ValueFeatureScorer
public ValueFeatureScorer(Feature.FeatureWeight weight, float constScore, org.apache.lucene.search.DocIdSetIterator itr)
-
-
Method Details
-
score
public float score()- Specified by:
scorein classFeature.FeatureWeight.FeatureScorer
-
getMaxScore
- Specified by:
getMaxScorein classorg.apache.lucene.search.Scorer- Throws:
IOException
-