Package org.elasticsearch.index.query
Class SpanTermQueryBuilder
java.lang.Object
org.elasticsearch.index.query.AbstractQueryBuilder<QB>
org.elasticsearch.index.query.BaseTermQueryBuilder<SpanTermQueryBuilder>
org.elasticsearch.index.query.SpanTermQueryBuilder
- All Implemented Interfaces:
NamedWriteable
,Writeable
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentObject
,QueryBuilder
,Rewriteable<QueryBuilder>
,SpanQueryBuilder
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.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields 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.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionSpanTermQueryBuilder(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.search.spans.SpanQuery
doToQuery(SearchExecutionContext context)
static SpanTermQueryBuilder
fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
Returns 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, checkNegativeBoost, declareStandardFields, doRewrite, equals, extractInnerHitBuilders, getName, hashCode, parseInnerQueryBuilder, parseInnerQueryBuilder, printBoostAndQueryName, queryName, queryName, requireValue, rewrite, throwParsingExceptionOnMultipleFields, toQuery, toString, toXContent, 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.common.xcontent.ToXContent
toXContent
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
Field Details
-
NAME
- See Also:
- Constant Field Values
-
-
Constructor Details
-
SpanTermQueryBuilder
- See Also:
BaseTermQueryBuilder(String, String)
-
SpanTermQueryBuilder
- See Also:
BaseTermQueryBuilder(String, int)
-
SpanTermQueryBuilder
- See Also:
BaseTermQueryBuilder(String, long)
-
SpanTermQueryBuilder
- See Also:
BaseTermQueryBuilder(String, float)
-
SpanTermQueryBuilder
- See Also:
BaseTermQueryBuilder(String, double)
-
SpanTermQueryBuilder
- See Also:
BaseTermQueryBuilder(String, Object)
-
SpanTermQueryBuilder
Read from a stream.- Throws:
IOException
-
-
Method Details
-
doToQuery
protected org.apache.lucene.search.spans.SpanQuery doToQuery(SearchExecutionContext context) throws IOException- Specified by:
doToQuery
in classAbstractQueryBuilder<SpanTermQueryBuilder>
- Throws:
IOException
-
fromXContent
public static SpanTermQueryBuilder fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws IOException, ParsingException- Throws:
IOException
ParsingException
-
getWriteableName
Description copied from interface:NamedWriteable
Returns the name of the writeable object- Specified by:
getWriteableName
in interfaceNamedWriteable
-