public static enum MatchQuery.Type extends java.lang.Enum<MatchQuery.Type> implements Writeable
Writeable.Reader<V>, Writeable.Writer<V>
Enum Constant and Description |
---|
BOOLEAN
The text is analyzed and terms are added to a boolean query.
|
PHRASE
The text is analyzed and used as a phrase query.
|
PHRASE_PREFIX
The text is analyzed and used in a phrase query, with the last term acting as a prefix.
|
Modifier and Type | Method and Description |
---|---|
static MatchQuery.Type |
readFromStream(StreamInput in) |
static MatchQuery.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MatchQuery.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 MatchQuery.Type BOOLEAN
public static final MatchQuery.Type PHRASE
public static final MatchQuery.Type PHRASE_PREFIX
public static MatchQuery.Type[] values()
for (MatchQuery.Type c : MatchQuery.Type.values()) System.out.println(c);
public static MatchQuery.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 static MatchQuery.Type readFromStream(StreamInput in) throws java.io.IOException
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable