public static enum BooleanClause.Occur extends Enum<BooleanClause.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 BooleanClause.Occur | 
valueOf(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 SHOULD
MUST 
 clauses one or more SHOULD clauses must match a document 
 for the BooleanQuery to match.public static final BooleanClause.Occur MUST_NOT
MUST_NOT clause.public static BooleanClause.Occur[] values()
for (BooleanClause.Occur c : BooleanClause.Occur.values()) System.out.println(c);
public static BooleanClause.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 © 2000-2014 Apache Software Foundation. All Rights Reserved.