
BooleanQuery
- Namespace
- Rowles.LeanCorpus.Search.Queries
- Assembly
- Rowles.LeanCorpus.dll
Combines sub-queries with MUST, SHOULD, and MUST_NOT clauses. Once a BooleanQuery has been built via BooleanQuery.Builder it is immutable; the clauses list is sealed and all properties are frozen.
public sealed class BooleanQuery : Query, IEquatable<Query>
- Inheritance
-
BooleanQuery
- Implements
- Inherited Members
- Extension Methods
BooleanQuery()
Initialises a new, mutable BooleanQuery.
Clauses
Gets the list of boolean clauses that compose this query.
Field
Gets the single field this query targets, or an empty value for fieldless and multi-field queries.
MinimumNumberShouldMatch
Gets the minimum number of SHOULD clauses that a document must match.
Add(Query, Occur)
Adds a sub-query with the specified occurrence type.
Equals(object?)
Determines whether the specified object is equal to the current object.
GetHashCode()
Serves as the default hash function.
Visit(QueryVisitor)
Visits this query and its children.