public static enum MatchQueryBuilder.Type extends Enum<MatchQueryBuilder.Type>
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 MatchQueryBuilder.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MatchQueryBuilder.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MatchQueryBuilder.Type BOOLEAN
public static final MatchQueryBuilder.Type PHRASE
public static final MatchQueryBuilder.Type PHRASE_PREFIX
public static MatchQueryBuilder.Type[] values()
for (MatchQueryBuilder.Type c : MatchQueryBuilder.Type.values()) System.out.println(c);
public static MatchQueryBuilder.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2009–2016. All rights reserved.