public class ScriptScoreFunctionParser extends Object implements ScoreFunctionParser
| Constructor and Description |
|---|
ScriptScoreFunctionParser() |
| 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
@Inject public ScriptScoreFunctionParser()
public String[] getNames()
ScoreFunctionParserFunctionScoreQueryParser.getNames in interface ScoreFunctionParserpublic ScoreFunction parse(QueryParseContext parseContext, XContentParser parser) throws IOException, QueryParsingException
parse in interface ScoreFunctionParserIOExceptionQueryParsingExceptionCopyright © 2009–2017. All rights reserved.