org.apache.lucene.search
Class BooleanClause.Occur
- BooleanClause
- Serializable
public static final class BooleanClause.Occur
Specifies how clauses are to occur in matching documents.
MUST
public static final BooleanClause.Occur MUST
Use this operator for clauses that must appear in the matching documents.
MUST_NOT
public static final BooleanClause.Occur MUST_NOT
Use this operator for clauses that must not appear in the matching documents.
Note that it is not possible to search for queries that only consist
of a MUST_NOT
clause.
SHOULD
public static final BooleanClause.Occur SHOULD
Use this operator for clauses that should appear in the
matching documents. For a BooleanQuery with two SHOULD
subqueries, at least one of the clauses must appear in the matching documents.
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.