public class WildcardQueryBuilder extends AbstractQueryBuilder<WildcardQueryBuilder> implements MultiTermQueryBuilder
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, queryName
EMPTY_PARAMS
Constructor and Description |
---|
WildcardQueryBuilder(StreamInput in)
Read from a stream.
|
WildcardQueryBuilder(java.lang.String fieldName,
java.lang.String value)
Implements the wildcard search query.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
doEquals(WildcardQueryBuilder 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) |
java.lang.String |
fieldName() |
static java.util.Optional<WildcardQueryBuilder> |
fromXContent(QueryParseContext parseContext) |
java.lang.String |
getWriteableName()
Returns the name of the writeable object
|
java.lang.String |
rewrite() |
WildcardQueryBuilder |
rewrite(java.lang.String rewrite) |
java.lang.String |
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 WildcardQueryBuilder(java.lang.String fieldName, java.lang.String value)
fieldName
- The field namevalue
- The wildcard query stringpublic WildcardQueryBuilder(StreamInput in) throws java.io.IOException
java.io.IOException
protected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo
in class AbstractQueryBuilder<WildcardQueryBuilder>
java.io.IOException
public java.lang.String fieldName()
public java.lang.String value()
public WildcardQueryBuilder rewrite(java.lang.String rewrite)
public java.lang.String rewrite()
public java.lang.String getWriteableName()
NamedWriteable
getWriteableName
in interface NamedWriteable
protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContent
in class AbstractQueryBuilder<WildcardQueryBuilder>
java.io.IOException
public static java.util.Optional<WildcardQueryBuilder> fromXContent(QueryParseContext parseContext) throws java.io.IOException
java.io.IOException
protected org.apache.lucene.search.Query doToQuery(QueryShardContext context) throws java.io.IOException
doToQuery
in class AbstractQueryBuilder<WildcardQueryBuilder>
java.io.IOException
protected int doHashCode()
doHashCode
in class AbstractQueryBuilder<WildcardQueryBuilder>
protected boolean doEquals(WildcardQueryBuilder other)
AbstractQueryBuilder
QueryBuilder
object of the same type is "equal to" this one.doEquals
in class AbstractQueryBuilder<WildcardQueryBuilder>