public static enum NodeBooleanClause.Occur extends Enum<NodeBooleanClause.Occur>
| Enum Constant and Description |
|---|
MUST
Use this operator for clauses that must appear in the matching documents.
|
MUST_NOT
Use this operator for clauses that must not appear in the matching documents.
|
SHOULD
Use this operator for clauses that should appear in the
matching documents.
|
| Modifier and Type | Method and Description |
|---|---|
static NodeBooleanClause.Occur |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NodeBooleanClause.Occur[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NodeBooleanClause.Occur MUST
public static final NodeBooleanClause.Occur SHOULD
MUST
clauses one or more SHOULD clauses must match a document
for the BooleanQuery to match.BooleanQuery.setMinimumNumberShouldMatch(int)public static final NodeBooleanClause.Occur MUST_NOT
MUST_NOT clause.public static NodeBooleanClause.Occur[] values()
for (NodeBooleanClause.Occur c : NodeBooleanClause.Occur.values()) System.out.println(c);
public static NodeBooleanClause.Occur 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 © 2014. All rights reserved.