Section navigation

Public classSealed 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

Public constructor BooleanQuery()

Initialises a new, mutable BooleanQuery.

Public property Clauses

Gets the list of boolean clauses that compose this query.

Public property Field

Gets the single field this query targets, or an empty value for fieldless and multi-field queries.

Public property MinimumNumberShouldMatch

Gets the minimum number of SHOULD clauses that a document must match.

Public method Add(Query, Occur)

Adds a sub-query with the specified occurrence type.

Public method Equals(object?)

Determines whether the specified object is equal to the current object.

Public method GetHashCode()

Serves as the default hash function.

Public method Visit(QueryVisitor)

Visits this query and its children.