The BooleanClause..::..Occur type exposes the following members.

Fields

  NameDescription
Public fieldStatic memberMUST
Use this operator for clauses that must appear in the matching documents.
Public fieldStatic memberMUST_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
CopyC#
MUST_NOT
clause.
Public fieldStatic memberSHOULD
Use this operator for clauses that should appear in the matching documents. For a BooleanQuery with no
CopyC#
MUST
clauses one or more
CopyC#
SHOULD
clauses must match a document for the BooleanQuery to match.

See Also