public abstract class Feature.FeatureWeight.FeatureScorer extends Scorer
Scorable.ChildScorable
Modifier and Type | Field and Description |
---|---|
protected DocIdSetIterator |
itr |
protected String |
name |
Constructor and Description |
---|
FeatureScorer(Feature.FeatureWeight weight,
DocIdSetIterator itr) |
Modifier and Type | Method and Description |
---|---|
int |
docID() |
DocInfo |
getDocInfo() |
DocIdSetIterator |
iterator() |
abstract float |
score() |
void |
setDocInfo(DocInfo docInfo)
Used to provide context from initial score steps to later reranking steps.
|
advanceShallow, getMaxScore, getWeight, twoPhaseIterator
getChildren, setMinCompetitiveScore
protected final String name
protected final DocIdSetIterator itr
public FeatureScorer(Feature.FeatureWeight weight, DocIdSetIterator itr)
public abstract float score() throws IOException
score
in class Scorable
IOException
public void setDocInfo(DocInfo docInfo)
public DocInfo getDocInfo()
public DocIdSetIterator iterator()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.