public class SpanTermQueryBuilder extends BaseTermQueryBuilder<SpanTermQueryBuilder> implements SpanQueryBuilder
SpanTermQuery
Writeable.Reader<V>, Writeable.Writer<V>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
fieldName, value, VALUE_FIELD
boost, BOOST_FIELD, DEFAULT_BOOST, NAME_FIELD, queryName
EMPTY_PARAMS
Constructor and Description |
---|
SpanTermQueryBuilder(StreamInput in)
Read from a stream.
|
SpanTermQueryBuilder(java.lang.String name,
double value) |
SpanTermQueryBuilder(java.lang.String name,
float value) |
SpanTermQueryBuilder(java.lang.String name,
int value) |
SpanTermQueryBuilder(java.lang.String name,
long value) |
SpanTermQueryBuilder(java.lang.String name,
java.lang.Object value) |
SpanTermQueryBuilder(java.lang.String name,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.lucene.search.spans.SpanQuery |
doToQuery(QueryShardContext context) |
static java.util.Optional<SpanTermQueryBuilder> |
fromXContent(QueryParseContext parseContext) |
java.lang.String |
getWriteableName()
Returns the name of the writeable object
|
doEquals, doHashCode, doWriteTo, doXContent, fieldName, value
addValidationError, boost, boost, convertToBytesRefIfString, convertToStringIfBytesRef, declareStandardFields, doRewrite, equals, extractInnerHitBuilders, getName, hashCode, printBoostAndQueryName, queryName, queryName, readQueries, requireValue, rewrite, throwParsingExceptionOnMultipleFields, toFilter, toQueries, toQuery, toXContent, writeQueries, writeTo
buildAsBytes, buildAsBytes, toString, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
boost, boost, getName, queryName, queryName, rewrite, rewriteQuery, toFilter, toQuery
isFragment
toXContent
public static final java.lang.String NAME
public SpanTermQueryBuilder(java.lang.String name, java.lang.String value)
public SpanTermQueryBuilder(java.lang.String name, int value)
public SpanTermQueryBuilder(java.lang.String name, long value)
public SpanTermQueryBuilder(java.lang.String name, float value)
public SpanTermQueryBuilder(java.lang.String name, double value)
public SpanTermQueryBuilder(java.lang.String name, java.lang.Object value)
public SpanTermQueryBuilder(StreamInput in) throws java.io.IOException
java.io.IOException
protected org.apache.lucene.search.spans.SpanQuery doToQuery(QueryShardContext context) throws java.io.IOException
doToQuery
in class AbstractQueryBuilder<SpanTermQueryBuilder>
java.io.IOException
public static java.util.Optional<SpanTermQueryBuilder> fromXContent(QueryParseContext parseContext) throws java.io.IOException, ParsingException
java.io.IOException
ParsingException
public java.lang.String getWriteableName()
NamedWriteable
getWriteableName
in interface NamedWriteable