Package org.elasticsearch.index.query
Enum SimpleQueryStringFlag
- java.lang.Object
-
- java.lang.Enum<SimpleQueryStringFlag>
-
- org.elasticsearch.index.query.SimpleQueryStringFlag
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SimpleQueryStringFlag>
,java.lang.constant.Constable
public enum SimpleQueryStringFlag extends java.lang.Enum<SimpleQueryStringFlag>
Flags for the XSimpleQueryString parser
-
-
Method Summary
Modifier and Type Method Description int
value()
static SimpleQueryStringFlag
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SimpleQueryStringFlag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALL
public static final SimpleQueryStringFlag ALL
-
NONE
public static final SimpleQueryStringFlag NONE
-
AND
public static final SimpleQueryStringFlag AND
-
NOT
public static final SimpleQueryStringFlag NOT
-
OR
public static final SimpleQueryStringFlag OR
-
PREFIX
public static final SimpleQueryStringFlag PREFIX
-
PHRASE
public static final SimpleQueryStringFlag PHRASE
-
PRECEDENCE
public static final SimpleQueryStringFlag PRECEDENCE
-
ESCAPE
public static final SimpleQueryStringFlag ESCAPE
-
WHITESPACE
public static final SimpleQueryStringFlag WHITESPACE
-
FUZZY
public static final SimpleQueryStringFlag FUZZY
-
NEAR
public static final SimpleQueryStringFlag NEAR
-
SLOP
public static final SimpleQueryStringFlag SLOP
-
-
Method Detail
-
values
public static SimpleQueryStringFlag[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SimpleQueryStringFlag valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
value
public int value()
-
-