public static enum BooleanClause.Occur extends Enum<BooleanClause.Occur>
Enum Constant and Description |
---|
FILTER
Like
MUST except that these clauses do not participate in scoring. |
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 FILTER
MUST
except that these clauses do not participate in scoring.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. These clauses do not contribute to the
score of documents.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-2024 Apache Software Foundation. All Rights Reserved.