public static enum BooleanClause.Occur extends java.lang.Enum<BooleanClause.Occur>
| Enum Constant and Description |
|---|
MUST
Marker for subqueries which must occur for the containing query to match.
|
MUST_NOT
Marker for subqueries which must not occur for the containing query to match.
|
SHOULD
Marker for subqueries at least one of which must occur (if there are any) for the containing query to match.
|
| Modifier and Type | Method and Description |
|---|---|
static BooleanClause.Occur |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BooleanClause.Occur[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BooleanClause.Occur MUST
public static final BooleanClause.Occur MUST_NOT
public static final BooleanClause.Occur SHOULD
public static BooleanClause.Occur[] values()
for (BooleanClause.Occur c : BooleanClause.Occur.values()) System.out.println(c);
public static BooleanClause.Occur 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 null