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 Summary
Nested Classes Modifier and Type Class Description class
LTRScoringQuery.ModelWeight.ModelScorer
-
Constructor Summary
Constructors Constructor Description ModelWeight(Feature.FeatureWeight[] modelFeatureWeights, Feature.FeatureWeight[] extractedFeatureWeights, int allFeaturesSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.lucene.search.Explanation
explain(org.apache.lucene.index.LeafReaderContext context, int doc)
void
extractTerms(Set<org.apache.lucene.index.Term> terms)
LTRScoringQuery.FeatureInfo[]
getFeaturesInfo()
boolean
isCacheable(org.apache.lucene.index.LeafReaderContext ctx)
protected void
reset()
LTRScoringQuery.ModelWeight.ModelScorer
scorer(org.apache.lucene.index.LeafReaderContext context)
-
-
-
Constructor Detail
-
ModelWeight
public ModelWeight(Feature.FeatureWeight[] modelFeatureWeights, Feature.FeatureWeight[] extractedFeatureWeights, int allFeaturesSize)
-
-
Method Detail
-
getFeaturesInfo
public LTRScoringQuery.FeatureInfo[] getFeaturesInfo()
-
explain
public org.apache.lucene.search.Explanation explain(org.apache.lucene.index.LeafReaderContext context, int doc) throws IOException
- Specified by:
explain
in classorg.apache.lucene.search.Weight
- Throws:
IOException
-
extractTerms
public void extractTerms(Set<org.apache.lucene.index.Term> terms)
- Specified by:
extractTerms
in classorg.apache.lucene.search.Weight
-
reset
protected void reset()
-
scorer
public LTRScoringQuery.ModelWeight.ModelScorer scorer(org.apache.lucene.index.LeafReaderContext context) throws IOException
- Specified by:
scorer
in classorg.apache.lucene.search.Weight
- Throws:
IOException
-
isCacheable
public boolean isCacheable(org.apache.lucene.index.LeafReaderContext ctx)
-
-