java.io.Serializable
, java.lang.Comparable<MultiMatchQueryBuilder.Type>
, Writeable
public static enum MultiMatchQueryBuilder.Type extends java.lang.Enum<MultiMatchQueryBuilder.Type> implements Writeable
Writeable.Reader<V>, Writeable.Writer<V>
Enum Constant | Description |
---|---|
BEST_FIELDS |
Uses the best matching boolean field as main score and uses
a tie-breaker to adjust the score based on remaining field matches
|
CROSS_FIELDS |
Uses a blended DocumentFrequency to dynamically combine the queried
fields into a single field given the configured analysis is identical.
|
MOST_FIELDS |
Uses the sum of the matching boolean fields to score the query
|
PHRASE |
Uses the best matching phrase field as main score and uses
a tie-breaker to adjust the score based on remaining field matches
|
PHRASE_PREFIX |
Uses the best matching phrase-prefix field as main score and uses
a tie-breaker to adjust the score based on remaining field matches
|
Modifier and Type | Method | Description |
---|---|---|
MatchQuery.Type |
matchQueryType() |
|
static MultiMatchQueryBuilder.Type |
parse(java.lang.String value,
DeprecationHandler deprecationHandler) |
|
ParseField |
parseField() |
|
static MultiMatchQueryBuilder.Type |
readFromStream(StreamInput in) |
|
float |
tieBreaker() |
|
static MultiMatchQueryBuilder.Type |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static MultiMatchQueryBuilder.Type[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeTo(StreamOutput out) |
Write this into the StreamOutput.
|
public static final MultiMatchQueryBuilder.Type BEST_FIELDS
public static final MultiMatchQueryBuilder.Type MOST_FIELDS
public static final MultiMatchQueryBuilder.Type CROSS_FIELDS
public static final MultiMatchQueryBuilder.Type PHRASE
public static final MultiMatchQueryBuilder.Type PHRASE_PREFIX
public static MultiMatchQueryBuilder.Type[] values()
for (MultiMatchQueryBuilder.Type c : MultiMatchQueryBuilder.Type.values()) System.out.println(c);
public static MultiMatchQueryBuilder.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic float tieBreaker()
public MatchQuery.Type matchQueryType()
public ParseField parseField()
public static MultiMatchQueryBuilder.Type parse(java.lang.String value, DeprecationHandler deprecationHandler)
public static MultiMatchQueryBuilder.Type readFromStream(StreamInput in) throws java.io.IOException
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable