public class SpanFirstQueryBuilder extends AbstractQueryBuilder<SpanFirstQueryBuilder> implements SpanQueryBuilder
Writeable.Reader<V>, Writeable.Writer<V>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
boost, BOOST_FIELD, DEFAULT_BOOST, NAME_FIELD, queryNameEMPTY_PARAMS| Constructor and Description |
|---|
SpanFirstQueryBuilder(SpanQueryBuilder matchBuilder,
int end)
Query that matches spans queries defined in
matchBuilder
whose end position is less than or equal to end. |
SpanFirstQueryBuilder(StreamInput in)
Read from a stream.
|
| Modifier and Type | Method and 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 java.util.Optional<SpanFirstQueryBuilder> |
fromXContent(QueryParseContext parseContext) |
java.lang.String |
getWriteableName()
Returns the name of the writeable object
|
SpanQueryBuilder |
innerQuery() |
addValidationError, boost, boost, convertToBytesRefIfString, convertToStringIfBytesRef, declareStandardFields, doRewrite, equals, extractInnerHitBuilders, getName, hashCode, printBoostAndQueryName, queryName, queryName, readQueries, requireValue, rewrite, throwParsingExceptionOnMultipleFields, toFilter, toQueries, toQuery, toXContent, writeQueries, writeTobuildAsBytes, buildAsBytes, toString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitboost, boost, getName, queryName, queryName, rewrite, rewriteQuery, toFilter, toQueryisFragmenttoXContentpublic 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 java.util.Optional<SpanFirstQueryBuilder> fromXContent(QueryParseContext parseContext) 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