Package org.apache.solr.ltr.feature
Class SolrFeature.SolrFeatureWeight
- java.lang.Object
-
- org.apache.lucene.search.Weight
-
- org.apache.solr.ltr.feature.Feature.FeatureWeight
-
- org.apache.solr.ltr.feature.SolrFeature.SolrFeatureWeight
-
- All Implemented Interfaces:
org.apache.lucene.search.SegmentCacheable
- Enclosing class:
- SolrFeature
public class SolrFeature.SolrFeatureWeight extends Feature.FeatureWeight
Weight for a SolrFeature
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
SolrFeature.SolrFeatureWeight.SolrFeatureScorer
Scorer for a SolrFeatureclass
SolrFeature.SolrFeatureWeight.SolrFeatureScorerIterator
An iterator that allows to iterate only on the documents for which a feature has a value.-
Nested classes/interfaces inherited from class org.apache.solr.ltr.feature.Feature.FeatureWeight
Feature.FeatureWeight.FeatureScorer, Feature.FeatureWeight.ValueFeatureScorer
-
-
Field Summary
-
Fields inherited from class org.apache.solr.ltr.feature.Feature.FeatureWeight
efi, macroExpander, originalQuery, request, searcher
-
-
Constructor Summary
Constructors Constructor Description SolrFeatureWeight(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 void
extractTerms(Set<org.apache.lucene.index.Term> terms)
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
-
-
-
-
Constructor Detail
-
SolrFeatureWeight
public SolrFeatureWeight(org.apache.lucene.search.IndexSearcher searcher, SolrQueryRequest request, org.apache.lucene.search.Query originalQuery, Map<String,String[]> efi) throws IOException
- Throws:
IOException
-
-
Method Detail
-
extractTerms
public void extractTerms(Set<org.apache.lucene.index.Term> terms)
- Overrides:
extractTerms
in classFeature.FeatureWeight
-
scorer
public Feature.FeatureWeight.FeatureScorer scorer(org.apache.lucene.index.LeafReaderContext context) throws IOException
- Specified by:
scorer
in classFeature.FeatureWeight
- Throws:
IOException
-
-