
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
- Inherited Members
- Extension Methods
Constructors
BooleanQuery()
Initialises a new, mutable BooleanQuery.
Properties
Clauses
Gets the list of boolean clauses that compose this query.
Field
Gets the primary field this query targets.
Methods
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.