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 ScoreFunctionParser
IOException
QueryParsingException
public String[] getNames()
ScoreFunctionParser
FunctionScoreQueryParser
.getNames
in interface ScoreFunctionParser
Copyright © 2009–2017. All rights reserved.