NamedWriteable, Writeable, ToXContent, ToXContentObject, QueryBuilder, Rewriteable<QueryBuilder>, SpanQueryBuilderpublic class SpanFirstQueryBuilder extends AbstractQueryBuilder<SpanFirstQueryBuilder> implements SpanQueryBuilder
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
NAME |
boost, BOOST_FIELD, DEFAULT_BOOST, NAME_FIELD, queryNameMAX_REWRITE_ROUNDSEMPTY_PARAMS| Constructor | Description |
|---|---|
SpanFirstQueryBuilder(StreamInput in) |
Read from a stream.
|
SpanFirstQueryBuilder(SpanQueryBuilder matchBuilder,
int end) |
Query that matches spans queries defined in
matchBuilder
whose end position is less than or equal to end. |
| Modifier and Type | Method | Description |
|---|---|---|
protected boolean |
doEquals(SpanFirstQueryBuilder other) |
Indicates whether some other
QueryBuilder object of the same type is "equal to" this one. |
protected int |
doHashCode() |
|
protected org.apache.lucene.search.Query |
doToQuery(QueryShardContext context) |
|
protected void |
doWriteTo(StreamOutput out) |
|
protected void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
|
int |
end() |
|
static SpanFirstQueryBuilder |
fromXContent(XContentParser parser) |
|
java.lang.String |
getWriteableName() |
Returns the name of the writeable object
|
SpanQueryBuilder |
innerQuery() |
addValidationError, boost, boost, declareStandardFields, doRewrite, equals, extractInnerHitBuilders, getName, hashCode, parseInnerQueryBuilder, printBoostAndQueryName, queryName, queryName, requireValue, rewrite, throwParsingExceptionOnMultipleFields, toFilter, toQuery, toString, toXContent, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitboost, boost, getName, queryName, queryName, rewrite, toFilter, toQueryrewrite, rewrite, rewrite, rewriteAndFetch, rewriteAndFetchtoXContentisFragmentpublic static final java.lang.String NAME
public SpanFirstQueryBuilder(SpanQueryBuilder matchBuilder, int end)
matchBuilder
whose end position is less than or equal to end.matchBuilder - inner SpanQueryBuilderend - maximum end position of the match, needs to be positivejava.lang.IllegalArgumentException - for negative end positionspublic SpanFirstQueryBuilder(StreamInput in) throws java.io.IOException
java.io.IOExceptionprotected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo in class AbstractQueryBuilder<SpanFirstQueryBuilder>java.io.IOExceptionpublic SpanQueryBuilder innerQuery()
SpanQueryBuilder defined in this querypublic int end()
protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContent in class AbstractQueryBuilder<SpanFirstQueryBuilder>java.io.IOExceptionpublic static SpanFirstQueryBuilder fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOExceptionprotected org.apache.lucene.search.Query doToQuery(QueryShardContext context) throws java.io.IOException
doToQuery in class AbstractQueryBuilder<SpanFirstQueryBuilder>java.io.IOExceptionprotected int doHashCode()
doHashCode in class AbstractQueryBuilder<SpanFirstQueryBuilder>protected boolean doEquals(SpanFirstQueryBuilder other)
AbstractQueryBuilderQueryBuilder object of the same type is "equal to" this one.doEquals in class AbstractQueryBuilder<SpanFirstQueryBuilder>public java.lang.String getWriteableName()
NamedWriteablegetWriteableName in interface NamedWriteable