public class MatchPhrasePrefixQueryBuilder extends AbstractQueryBuilder<MatchPhrasePrefixQueryBuilder>
Writeable.Reader<V>, Writeable.Writer<V>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static ParseField |
MAX_EXPANSIONS_FIELD |
static java.lang.String |
NAME |
boost, BOOST_FIELD, DEFAULT_BOOST, NAME_FIELD, queryNameEMPTY_PARAMSMAX_REWRITE_ROUNDS| Constructor and Description |
|---|
MatchPhrasePrefixQueryBuilder(StreamInput in)
Read from a stream.
|
MatchPhrasePrefixQueryBuilder(java.lang.String fieldName,
java.lang.Object value) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
analyzer()
Get the analyzer to use, if previously set, otherwise null
|
MatchPhrasePrefixQueryBuilder |
analyzer(java.lang.String analyzer)
Explicitly set the analyzer to use.
|
protected boolean |
doEquals(MatchPhrasePrefixQueryBuilder 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()
Returns the field name used in this query.
|
static MatchPhrasePrefixQueryBuilder |
fromXContent(XContentParser parser) |
java.lang.String |
getWriteableName()
Returns the name of the writeable object
|
int |
maxExpansions()
Get the (optional) number of term expansions when using fuzzy or prefix
type query.
|
MatchPhrasePrefixQueryBuilder |
maxExpansions(int maxExpansions)
The number of term expansions to use.
|
int |
slop()
Get the slop factor for phrase queries.
|
MatchPhrasePrefixQueryBuilder |
slop(int slop)
Sets a slop factor for phrase queries
|
java.lang.Object |
value()
Returns the value used in this query.
|
addValidationError, boost, boost, convertToBytesRefIfString, convertToStringIfBytesRef, declareStandardFields, doRewrite, equals, extractInnerHitBuilders, getName, hashCode, parseInnerQueryBuilder, printBoostAndQueryName, queryName, queryName, readQueries, requireValue, rewrite, throwParsingExceptionOnMultipleFields, toFilter, toQueries, toQuery, toXContent, writeQueries, writeTobuildAsBytes, buildAsBytes, toString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitisFragmentrewrite, rewrite, rewrite, rewriteAndFetch, rewriteAndFetchpublic static final java.lang.String NAME
public static final ParseField MAX_EXPANSIONS_FIELD
public MatchPhrasePrefixQueryBuilder(java.lang.String fieldName,
java.lang.Object value)
public MatchPhrasePrefixQueryBuilder(StreamInput in) throws java.io.IOException
java.io.IOExceptionprotected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo in class AbstractQueryBuilder<MatchPhrasePrefixQueryBuilder>java.io.IOExceptionpublic java.lang.String fieldName()
public java.lang.Object value()
public MatchPhrasePrefixQueryBuilder analyzer(java.lang.String analyzer)
public java.lang.String analyzer()
public MatchPhrasePrefixQueryBuilder slop(int slop)
public int slop()
public MatchPhrasePrefixQueryBuilder maxExpansions(int maxExpansions)
public int maxExpansions()
public java.lang.String getWriteableName()
NamedWriteableprotected void doXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContent in class AbstractQueryBuilder<MatchPhrasePrefixQueryBuilder>java.io.IOExceptionprotected org.apache.lucene.search.Query doToQuery(QueryShardContext context) throws java.io.IOException
doToQuery in class AbstractQueryBuilder<MatchPhrasePrefixQueryBuilder>java.io.IOExceptionprotected boolean doEquals(MatchPhrasePrefixQueryBuilder other)
AbstractQueryBuilderQueryBuilder object of the same type is "equal to" this one.doEquals in class AbstractQueryBuilder<MatchPhrasePrefixQueryBuilder>protected int doHashCode()
doHashCode in class AbstractQueryBuilder<MatchPhrasePrefixQueryBuilder>public static MatchPhrasePrefixQueryBuilder fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOException