A clause in a BooleanQuery.

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

Methods

  NameDescription
Public methodEquals
Resolves the deserialized instance to the local reference for accurate equals() and == comparisons.
(Inherited from Parameter.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString (Overrides Parameter..::..ToString()()()().)

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