NamedWriteable
, Writeable
, ToXContent
, ToXContentObject
, QueryBuilder
, Rewriteable<QueryBuilder>
, SpanQueryBuilder
public class SpanWithinQueryBuilder extends AbstractQueryBuilder<SpanWithinQueryBuilder> implements SpanQueryBuilder
SpanWithinQuery
.ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
NAME |
boost, BOOST_FIELD, DEFAULT_BOOST, NAME_FIELD, queryName
MAX_REWRITE_ROUNDS
EMPTY_PARAMS
Constructor | Description |
---|---|
SpanWithinQueryBuilder(StreamInput in) |
Read from a stream.
|
SpanWithinQueryBuilder(SpanQueryBuilder big,
SpanQueryBuilder little) |
Query that returns spans from
little that are contained in a spans from big . |
Modifier and Type | Method | Description |
---|---|---|
SpanQueryBuilder |
bigQuery() |
|
protected boolean |
doEquals(SpanWithinQueryBuilder 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) |
|
static SpanWithinQueryBuilder |
fromXContent(XContentParser parser) |
|
java.lang.String |
getWriteableName() |
Returns the name of the writeable object
|
SpanQueryBuilder |
littleQuery() |
addValidationError, boost, boost, declareStandardFields, doRewrite, equals, extractInnerHitBuilders, getName, hashCode, parseInnerQueryBuilder, printBoostAndQueryName, queryName, queryName, requireValue, rewrite, throwParsingExceptionOnMultipleFields, toFilter, toQuery, toString, toXContent, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
boost, boost, getName, queryName, queryName, rewrite, toFilter, toQuery
rewrite, rewrite, rewrite, rewriteAndFetch, rewriteAndFetch
toXContent
isFragment
public static final java.lang.String NAME
public SpanWithinQueryBuilder(SpanQueryBuilder big, SpanQueryBuilder little)
little
that are contained in a spans from big
.big
- clause that must enclose little
for a match.little
- the little clause, it must be contained within big
for a match.public SpanWithinQueryBuilder(StreamInput in) throws java.io.IOException
java.io.IOException
protected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo
in class AbstractQueryBuilder<SpanWithinQueryBuilder>
java.io.IOException
public SpanQueryBuilder littleQuery()
big
for a match.public SpanQueryBuilder bigQuery()
little
for a match.protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContent
in class AbstractQueryBuilder<SpanWithinQueryBuilder>
java.io.IOException
public static SpanWithinQueryBuilder fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOException
protected org.apache.lucene.search.Query doToQuery(QueryShardContext context) throws java.io.IOException
doToQuery
in class AbstractQueryBuilder<SpanWithinQueryBuilder>
java.io.IOException
protected int doHashCode()
doHashCode
in class AbstractQueryBuilder<SpanWithinQueryBuilder>
protected boolean doEquals(SpanWithinQueryBuilder other)
AbstractQueryBuilder
QueryBuilder
object of the same type is "equal to" this one.doEquals
in class AbstractQueryBuilder<SpanWithinQueryBuilder>
public java.lang.String getWriteableName()
NamedWriteable
getWriteableName
in interface NamedWriteable