Package org.apache.solr.ltr
Class LTRScoringQuery.ModelWeight
- java.lang.Object
- 
- org.apache.lucene.search.Weight
- 
- org.apache.solr.ltr.LTRScoringQuery.ModelWeight
 
 
- 
- All Implemented Interfaces:
- org.apache.lucene.search.SegmentCacheable
 - Enclosing class:
- LTRScoringQuery
 
 public class LTRScoringQuery.ModelWeight extends org.apache.lucene.search.Weight
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description classLTRScoringQuery.ModelWeight.ModelScorer
 - 
Constructor SummaryConstructors Constructor Description ModelWeight(Feature.FeatureWeight[] modelFeatureWeights, Feature.FeatureWeight[] extractedFeatureWeights, int allFeaturesSize)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.search.Explanationexplain(org.apache.lucene.index.LeafReaderContext context, int doc)voidextractTerms(Set<org.apache.lucene.index.Term> terms)LTRScoringQuery.FeatureInfo[]getFeaturesInfo()booleanisCacheable(org.apache.lucene.index.LeafReaderContext ctx)protected voidreset()LTRScoringQuery.ModelWeight.ModelScorerscorer(org.apache.lucene.index.LeafReaderContext context)
 
- 
- 
- 
Constructor Detail- 
ModelWeightpublic ModelWeight(Feature.FeatureWeight[] modelFeatureWeights, Feature.FeatureWeight[] extractedFeatureWeights, int allFeaturesSize) 
 
- 
 - 
Method Detail- 
getFeaturesInfopublic LTRScoringQuery.FeatureInfo[] getFeaturesInfo() 
 - 
explainpublic org.apache.lucene.search.Explanation explain(org.apache.lucene.index.LeafReaderContext context, int doc) throws IOException- Specified by:
- explainin class- org.apache.lucene.search.Weight
- Throws:
- IOException
 
 - 
extractTermspublic void extractTerms(Set<org.apache.lucene.index.Term> terms) - Specified by:
- extractTermsin class- org.apache.lucene.search.Weight
 
 - 
resetprotected void reset() 
 - 
scorerpublic LTRScoringQuery.ModelWeight.ModelScorer scorer(org.apache.lucene.index.LeafReaderContext context) throws IOException - Specified by:
- scorerin class- org.apache.lucene.search.Weight
- Throws:
- IOException
 
 - 
isCacheablepublic boolean isCacheable(org.apache.lucene.index.LeafReaderContext ctx) 
 
- 
 
-