java.lang.Object
org.elasticsearch.index.query.AbstractQueryBuilder<QB>
org.elasticsearch.index.query.BaseTermQueryBuilder<SpanTermQueryBuilder>
org.elasticsearch.index.query.SpanTermQueryBuilder
- All Implemented Interfaces:
NamedWriteable
,VersionedNamedWriteable
,Writeable
,QueryBuilder
,Rewriteable<QueryBuilder>
,SpanQueryBuilder
,ToXContent
,ToXContentObject
public class SpanTermQueryBuilder
extends BaseTermQueryBuilder<SpanTermQueryBuilder>
implements SpanQueryBuilder
A Span Query that matches documents containing a term.
- See Also:
-
SpanTermQuery
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.index.query.SpanQueryBuilder
SpanQueryBuilder.SpanQueryBuilderUtil
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
FieldsFields inherited from class org.elasticsearch.index.query.BaseTermQueryBuilder
fieldName, value, VALUE_FIELD
Fields inherited from class org.elasticsearch.index.query.AbstractQueryBuilder
boost, BOOST_FIELD, DEFAULT_BOOST, NAME_FIELD, queryName
Fields inherited from interface org.elasticsearch.index.query.Rewriteable
MAX_REWRITE_ROUNDS
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorsConstructorDescriptionSpanTermQueryBuilder
(String name, double value) SpanTermQueryBuilder
(String name, float value) SpanTermQueryBuilder
(String name, int value) SpanTermQueryBuilder
(String name, long value) SpanTermQueryBuilder
(String name, Object value) SpanTermQueryBuilder
(String name, String value) Read from a stream. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.lucene.queries.spans.SpanQuery
doToQuery
(SearchExecutionContext context) static SpanTermQueryBuilder
fromXContent
(XContentParser parser) The minimal version of the recipient this object can be sent toReturns the name of the writeable objectMethods inherited from class org.elasticsearch.index.query.BaseTermQueryBuilder
addExtraXContent, doEquals, doHashCode, doWriteTo, doXContent, fieldName, value
Methods inherited from class org.elasticsearch.index.query.AbstractQueryBuilder
addValidationError, boost, boost, boostAndQueryNameToXContent, checkNegativeBoost, declareStandardFields, doRewrite, equals, extractInnerHitBuilders, getName, hashCode, parseInnerQueryBuilder, parseInnerQueryBuilder, printBoostAndQueryName, queryName, queryName, readQueries, requireValue, rewrite, throwParsingExceptionOnMultipleFields, toQuery, toString, toXContent, writeQueries, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.index.query.QueryBuilder
boost, boost, getName, queryName, queryName, rewrite, toQuery
Methods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContent
Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
SpanTermQueryBuilder
- See Also:
-
SpanTermQueryBuilder
- See Also:
-
SpanTermQueryBuilder
- See Also:
-
SpanTermQueryBuilder
- See Also:
-
SpanTermQueryBuilder
- See Also:
-
SpanTermQueryBuilder
- See Also:
-
SpanTermQueryBuilder
Read from a stream.- Throws:
IOException
-
-
Method Details
-
doToQuery
protected org.apache.lucene.queries.spans.SpanQuery doToQuery(SearchExecutionContext context) throws IOException - Specified by:
doToQuery
in classAbstractQueryBuilder<SpanTermQueryBuilder>
- Throws:
IOException
-
fromXContent
public static SpanTermQueryBuilder fromXContent(XContentParser parser) throws IOException, ParsingException - Throws:
IOException
ParsingException
-
getWriteableName
Description copied from interface:VersionedNamedWriteable
Returns the name of the writeable object- Specified by:
getWriteableName
in interfaceNamedWriteable
- Specified by:
getWriteableName
in interfaceVersionedNamedWriteable
-
getMinimalSupportedVersion
Description copied from interface:VersionedNamedWriteable
The minimal version of the recipient this object can be sent to- Specified by:
getMinimalSupportedVersion
in interfaceVersionedNamedWriteable
-