Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Class BooleanQuery

A combination of conjunction and disjunction queries.

Inheritance
object
SearchQueryBase
BooleanQuery
Implements
ISearchQuery
Inherited Members
SearchQueryBase.IndexName
SearchQueryBase.Query
SearchQueryBase.Boost(double)
SearchQueryBase.BoostValue
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Couchbase.Search.Queries.Compound
Assembly: Couchbase.NetClient.dll
Syntax
public class BooleanQuery : SearchQueryBase, ISearchQuery

Constructors

View Source

BooleanQuery()

Declaration
public BooleanQuery()

Methods

View Source

AsReadOnly()

Declaration
public BooleanQuery.ReadOnly AsReadOnly()
Returns
Type Description
BooleanQuery.ReadOnly
View Source

Deconstruct(out ConjunctionQuery?, out DisjunctionQuery?, out DisjunctionQuery?)

Declaration
public void Deconstruct(out ConjunctionQuery? mustQueries, out DisjunctionQuery? shouldQueries, out DisjunctionQuery? mustNotQueries)
Parameters
Type Name Description
ConjunctionQuery mustQueries
DisjunctionQuery shouldQueries
DisjunctionQuery mustNotQueries
View Source

Export()

Gets a JSON object representing this query instance />

Declaration
[RequiresUnreferencedCode("Couchbase FTS might require types that cannot be statically analyzed. Make sure all required types are preserved.")]
[RequiresDynamicCode("Couchbase FTS might require types that cannot be statically analyzed and might need runtime code generation. Do not use for native AOT applications.")]
public override JObject Export()
Returns
Type Description
JObject
Overrides
SearchQueryBase.Export()
View Source

Must(params ISearchQuery[])

Result documents must satisfy these queries.

Declaration
public BooleanQuery Must(params ISearchQuery[] queries)
Parameters
Type Name Description
ISearchQuery[] queries
Returns
Type Description
BooleanQuery
View Source

MustNot(params ISearchQuery[])

Result documents must not satisfy these queries.

Declaration
public BooleanQuery MustNot(params ISearchQuery[] queries)
Parameters
Type Name Description
ISearchQuery[] queries

The query.

Returns
Type Description
BooleanQuery
View Source

Should(params ISearchQuery[])

Result documents should satisfy these queries..

Declaration
public BooleanQuery Should(params ISearchQuery[] queries)
Parameters
Type Name Description
ISearchQuery[] queries

The query.

Returns
Type Description
BooleanQuery
View Source

ShouldMin(int)

If a hit satisfies at least min queries in the should be boosted by this amount.

Declaration
public BooleanQuery ShouldMin(int min)
Parameters
Type Name Description
int min

The minimum to boost by - the default is 1.

Returns
Type Description
BooleanQuery

Implements

ISearchQuery

See Also

SearchQueryBase
  • View Source
In this article
Back to top Copyright © 2020 Couchbase, Inc. All rights reserved.