Lucene.Net 1.9.1 Class Library

BooleanClause.Occur Fields

The fields of the BooleanClause.Occur class are listed below. For a complete list of BooleanClause.Occur class members, see the BooleanClause.Occur Members topic.

Public Static Fields

MUSTUse this operator for terms that must appear in the matching documents.
MUST_NOTUse this operator for terms 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
query.
SHOULDUse this operator for terms that should appear in the matching documents. For a BooleanQuery with two
SHOULD
subqueries, at least one of the queries must appear in the matching documents.

See Also

BooleanClause.Occur Class | Lucene.Net.Search Namespace