public class BoostingQueryParser extends java.lang.Object implements QueryParser<BoostingQueryBuilder>
| Modifier and Type | Field and Description |
|---|---|
static ParseField |
NEGATIVE_BOOST_FIELD |
static ParseField |
NEGATIVE_FIELD |
static ParseField |
POSITIVE_FIELD |
| Constructor and Description |
|---|
BoostingQueryParser() |
| Modifier and Type | Method and Description |
|---|---|
BoostingQueryBuilder |
fromXContent(QueryParseContext parseContext)
|
BoostingQueryBuilder |
getBuilderPrototype() |
java.lang.String[] |
names()
The names this query parser is registered under.
|
public static final ParseField POSITIVE_FIELD
public static final ParseField NEGATIVE_FIELD
public static final ParseField NEGATIVE_BOOST_FIELD
public java.lang.String[] names()
QueryParsernames in interface QueryParser<BoostingQueryBuilder>public BoostingQueryBuilder fromXContent(QueryParseContext parseContext) throws java.io.IOException
QueryParserfromXContent in interface QueryParser<BoostingQueryBuilder>parseContext - the input parse context. The state on the parser contained in
this context will be changed as a side effect of this method
calljava.io.IOExceptionpublic BoostingQueryBuilder getBuilderPrototype()
getBuilderPrototype in interface QueryParser<BoostingQueryBuilder>QueryBuilder instance for this parser that can be used for deserialization