public class LTRScoringQuery.ModelWeight extends Weight
Modifier and Type | Class and Description |
---|---|
class |
LTRScoringQuery.ModelWeight.ModelScorer |
Weight.DefaultBulkScorer
parentQuery
Constructor and Description |
---|
ModelWeight(Feature.FeatureWeight[] modelFeatureWeights,
Feature.FeatureWeight[] extractedFeatureWeights,
int allFeaturesSize) |
Modifier and Type | Method and Description |
---|---|
Explanation |
explain(LeafReaderContext context,
int doc) |
void |
extractTerms(Set<Term> terms) |
LTRScoringQuery.FeatureInfo[] |
getFeaturesInfo() |
boolean |
isCacheable(LeafReaderContext ctx) |
protected void |
reset() |
LTRScoringQuery.ModelWeight.ModelScorer |
scorer(LeafReaderContext context) |
bulkScorer, getQuery, matches, scorerSupplier
public ModelWeight(Feature.FeatureWeight[] modelFeatureWeights, Feature.FeatureWeight[] extractedFeatureWeights, int allFeaturesSize)
public LTRScoringQuery.FeatureInfo[] getFeaturesInfo()
public Explanation explain(LeafReaderContext context, int doc) throws IOException
explain
in class Weight
IOException
public void extractTerms(Set<Term> terms)
extractTerms
in class Weight
protected void reset()
public LTRScoringQuery.ModelWeight.ModelScorer scorer(LeafReaderContext context) throws IOException
scorer
in class Weight
IOException
public boolean isCacheable(LeafReaderContext ctx)
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.