Package org.apache.solr.ltr.feature
Class ValueFeature.ValueFeatureWeight
- java.lang.Object
-
- org.apache.lucene.search.Weight
-
- org.apache.solr.ltr.feature.Feature.FeatureWeight
-
- org.apache.solr.ltr.feature.ValueFeature.ValueFeatureWeight
-
- All Implemented Interfaces:
org.apache.lucene.search.SegmentCacheable
- Enclosing class:
- ValueFeature
public class ValueFeature.ValueFeatureWeight extends Feature.FeatureWeight
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.ltr.feature.Feature.FeatureWeight
Feature.FeatureWeight.FeatureScorer, Feature.FeatureWeight.FilterFeatureScorer, Feature.FeatureWeight.ValueFeatureScorer
-
-
Field Summary
Fields Modifier and Type Field Description protected Float
featureValue
-
Fields inherited from class org.apache.solr.ltr.feature.Feature.FeatureWeight
efi, macroExpander, originalQuery, request, searcher
-
-
Constructor Summary
Constructors Constructor Description ValueFeatureWeight(org.apache.lucene.search.IndexSearcher searcher, SolrQueryRequest request, org.apache.lucene.search.Query originalQuery, Map<String,String[]> efi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Feature.FeatureWeight.FeatureScorer
scorer(org.apache.lucene.index.LeafReaderContext context)
-
Methods inherited from class org.apache.solr.ltr.feature.Feature.FeatureWeight
explain, getDefaultValue, getIndex, getName, isCacheable, toString
-
-
-
-
Field Detail
-
featureValue
protected final Float featureValue
-
-
Constructor Detail
-
ValueFeatureWeight
public ValueFeatureWeight(org.apache.lucene.search.IndexSearcher searcher, SolrQueryRequest request, org.apache.lucene.search.Query originalQuery, Map<String,String[]> efi)
-
-
Method Detail
-
scorer
public Feature.FeatureWeight.FeatureScorer scorer(org.apache.lucene.index.LeafReaderContext context) throws IOException
- Specified by:
scorer
in classFeature.FeatureWeight
- Throws:
IOException
-
-