public class FieldValueFactorFunctionParser extends Object implements ScoreFunctionParser
{
"field_value_factor": {
"field": "myfield",
"factor": 1.5,
"modifier": "square",
"missing": 1
}
}
| Constructor and Description |
|---|
FieldValueFactorFunctionParser() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getNames()
Returns the name of the function, for example "linear", "gauss" etc.
|
ScoreFunction |
parse(QueryParseContext parseContext,
XContentParser parser) |
public static String[] NAMES
public ScoreFunction parse(QueryParseContext parseContext, XContentParser parser) throws IOException, QueryParsingException
parse in interface ScoreFunctionParserIOExceptionQueryParsingExceptionpublic String[] getNames()
ScoreFunctionParserFunctionScoreQueryParser.getNames in interface ScoreFunctionParserCopyright © 2009–2017. All rights reserved.