public abstract class Feature.FeatureWeight.FeatureScorer extends Scorer
Scorer.ChildScorer| 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.
|
getChildren, getWeight, twoPhaseIteratorprotected final String name
protected final DocIdSetIterator itr
public FeatureScorer(Feature.FeatureWeight weight, DocIdSetIterator itr)
public abstract float score()
throws IOException
score in class ScorerIOExceptionpublic void setDocInfo(DocInfo docInfo)
public DocInfo getDocInfo()
public DocIdSetIterator iterator()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.