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() |
float |
getValueForNormalization() |
void |
normalize(float norm,
float boost) |
protected void |
reset() |
LTRScoringQuery.ModelWeight.ModelScorer |
scorer(LeafReaderContext context) |
bulkScorer, getQuery
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 float getValueForNormalization() throws IOException
getValueForNormalization
in class Weight
IOException
public LTRScoringQuery.ModelWeight.ModelScorer scorer(LeafReaderContext context) throws IOException
scorer
in class Weight
IOException
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.