Table of Contents

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
Inherited Members
Extension Methods

Constructors

Public constructor BooleanQuery()

Initialises a new, mutable BooleanQuery.

Properties

Public propertyRead-only Clauses

Gets the list of boolean clauses that compose this query.

Public propertyRead-only Field

Gets the primary field this query targets.

Methods

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.