Enum SimpleQueryFlag
- java.lang.Object
-
- java.lang.Enum<SimpleQueryFlag>
-
- org.hibernate.search.engine.search.predicate.dsl.SimpleQueryFlag
-
- All Implemented Interfaces:
Serializable
,Comparable<SimpleQueryFlag>
public enum SimpleQueryFlag extends Enum<SimpleQueryFlag>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AND
EnablesAND
operator (+)ESCAPE
EnablesESCAPE
operator (\)FUZZY
EnablesFUZZY
operators: (~) on single termsNEAR
EnablesNEAR
operators: (~) on phrasesNOT
EnablesNOT
operator (-)OR
EnablesOR
operator (|)PHRASE
EnablesPHRASE
operator (")PRECEDENCE
EnablesPRECEDENCE
operators:(
and)
PREFIX
EnablesPREFIX
operator (*)WHITESPACE
EnablesWHITESPACE
operators: ' ' '\n' '\r' '\t'
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SimpleQueryFlag
valueOf(String name)
Returns the enum constant of this type with the specified name.static SimpleQueryFlag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AND
public static final SimpleQueryFlag AND
EnablesAND
operator (+)
-
NOT
public static final SimpleQueryFlag NOT
EnablesNOT
operator (-)
-
OR
public static final SimpleQueryFlag OR
EnablesOR
operator (|)
-
PREFIX
public static final SimpleQueryFlag PREFIX
EnablesPREFIX
operator (*)
-
PHRASE
public static final SimpleQueryFlag PHRASE
EnablesPHRASE
operator (")
-
PRECEDENCE
public static final SimpleQueryFlag PRECEDENCE
EnablesPRECEDENCE
operators:(
and)
-
ESCAPE
public static final SimpleQueryFlag ESCAPE
EnablesESCAPE
operator (\)
-
WHITESPACE
public static final SimpleQueryFlag WHITESPACE
EnablesWHITESPACE
operators: ' ' '\n' '\r' '\t'
-
FUZZY
public static final SimpleQueryFlag FUZZY
EnablesFUZZY
operators: (~) on single terms
-
NEAR
public static final SimpleQueryFlag NEAR
EnablesNEAR
operators: (~) on phrases
-
-
Method Detail
-
values
public static SimpleQueryFlag[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SimpleQueryFlag c : SimpleQueryFlag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SimpleQueryFlag valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-