public class FieldValueFactorFunction extends ScoreFunction
| Modifier and Type | Class and Description |
|---|---|
static class |
FieldValueFactorFunction.Modifier
The Type class encapsulates the modification types that can be applied
to the score/value product.
|
| Constructor and Description |
|---|
FieldValueFactorFunction(String field,
float boostFactor,
FieldValueFactorFunction.Modifier modifierType,
Double missing,
IndexNumericFieldData indexFieldData) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.search.Explanation |
explainScore(int docId,
org.apache.lucene.search.Explanation subQueryScore) |
double |
score(int docId,
float subQueryScore) |
void |
setNextReader(org.apache.lucene.index.AtomicReaderContext context) |
getDefaultScoreCombinerpublic FieldValueFactorFunction(String field, float boostFactor, FieldValueFactorFunction.Modifier modifierType, Double missing, IndexNumericFieldData indexFieldData)
public void setNextReader(org.apache.lucene.index.AtomicReaderContext context)
setNextReader in class ScoreFunctionpublic double score(int docId,
float subQueryScore)
score in class ScoreFunctionpublic org.apache.lucene.search.Explanation explainScore(int docId,
org.apache.lucene.search.Explanation subQueryScore)
explainScore in class ScoreFunctionCopyright © 2009–2016. All rights reserved.