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
Weight for a SolrFeature
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classScorer for a SolrFeatureNested classes/interfaces inherited from class org.apache.solr.ltr.feature.Feature.FeatureWeight
Feature.FeatureWeight.FeatureScorer, Feature.FeatureWeight.FilterFeatureScorer, Feature.FeatureWeight.ValueFeatureScorerNested classes/interfaces inherited from class org.apache.lucene.search.Weight
org.apache.lucene.search.Weight.DefaultBulkScorer, org.apache.lucene.search.Weight.DefaultScorerSupplier -
Field Summary
Fields inherited from class org.apache.solr.ltr.feature.Feature.FeatureWeight
efi, macroExpander, originalQuery, request, searcherFields inherited from class org.apache.lucene.search.Weight
parentQuery -
Constructor Summary
ConstructorsConstructorDescriptionSolrFeatureWeight(SolrIndexSearcher searcher, SolrQueryRequest request, org.apache.lucene.search.Query originalQuery, Map<String, String[]> efi) -
Method Summary
Modifier and TypeMethodDescriptionfeatureScorer(org.apache.lucene.index.LeafReaderContext context) Methods inherited from class org.apache.solr.ltr.feature.Feature.FeatureWeight
explain, getDefaultValue, getIndex, getName, isCacheable, scorerSupplier, toStringMethods inherited from class org.apache.lucene.search.Weight
bulkScorer, count, getQuery, matches, scorer
-
Constructor Details
-
SolrFeatureWeight
public SolrFeatureWeight(SolrIndexSearcher searcher, SolrQueryRequest request, org.apache.lucene.search.Query originalQuery, Map<String, String[]> efi) throws IOException- Throws:
IOException
-
-
Method Details
-
featureScorer
public Feature.FeatureWeight.FeatureScorer featureScorer(org.apache.lucene.index.LeafReaderContext context) throws IOException - Specified by:
featureScorerin classFeature.FeatureWeight- Throws:
IOException
-