public class RandomScoreFunctionParser extends Object implements ScoreFunctionParser
Constructor and Description |
---|
RandomScoreFunctionParser() |
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 RandomScoreFunctionParser()
public String[] getNames()
ScoreFunctionParser
FunctionScoreQueryParser
.getNames
in interface ScoreFunctionParser
public ScoreFunction parse(QueryParseContext parseContext, XContentParser parser) throws IOException, QueryParsingException
parse
in interface ScoreFunctionParser
IOException
QueryParsingException
Copyright © 2009–2016. All rights reserved.