public class SpanNearQueryParser extends java.lang.Object implements QueryParser<SpanNearQueryBuilder>
| Modifier and Type | Field and Description |
|---|---|
static ParseField |
CLAUSES_FIELD |
static ParseField |
COLLECT_PAYLOADS_FIELD |
static ParseField |
IN_ORDER_FIELD |
static ParseField |
SLOP_FIELD |
| Constructor and Description |
|---|
SpanNearQueryParser() |
| Modifier and Type | Method and Description |
|---|---|
SpanNearQueryBuilder |
fromXContent(QueryParseContext parseContext)
|
SpanNearQueryBuilder |
getBuilderPrototype() |
java.lang.String[] |
names()
The names this query parser is registered under.
|
public static final ParseField SLOP_FIELD
public static final ParseField COLLECT_PAYLOADS_FIELD
public static final ParseField CLAUSES_FIELD
public static final ParseField IN_ORDER_FIELD
public java.lang.String[] names()
QueryParsernames in interface QueryParser<SpanNearQueryBuilder>public SpanNearQueryBuilder fromXContent(QueryParseContext parseContext) throws java.io.IOException
QueryParserfromXContent in interface QueryParser<SpanNearQueryBuilder>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 SpanNearQueryBuilder getBuilderPrototype()
getBuilderPrototype in interface QueryParser<SpanNearQueryBuilder>QueryBuilder instance for this parser that can be used for deserialization