Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Class MatchQuery

A query that analyzes the input text and uses that analyzed text to query the index.

Inheritance
object
SearchQueryBase
MatchQuery
Implements
ISearchQuery
Inherited Members
SearchQueryBase.Boost(double)
SearchQueryBase.BoostValue
object.GetType()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Couchbase.Search.Queries.Simple
Assembly: Couchbase.NetClient.dll
Syntax
public sealed class MatchQuery : SearchQueryBase, ISearchQuery

Constructors

View Source

MatchQuery(string)

Declaration
public MatchQuery(string match)
Parameters
Type Name Description
string match

Methods

View Source

Analyzer(string)

Declaration
public MatchQuery Analyzer(string analyzer)
Parameters
Type Name Description
string analyzer
Returns
Type Description
MatchQuery
View Source

AsReadOnly()

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

Deconstruct(out string, out string, out int, out int, out string, out MatchOperator?)

Declaration
public void Deconstruct(out string match, out string analyzer, out int prefixLength, out int fuzziness, out string field, out MatchOperator? matchOperator)
Parameters
Type Name Description
string match
string analyzer
int prefixLength
int fuzziness
string field
MatchOperator? matchOperator
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

Field(string)

Declaration
public MatchQuery Field(string field)
Parameters
Type Name Description
string field
Returns
Type Description
MatchQuery
View Source

Fuzziness(int)

Declaration
public MatchQuery Fuzziness(int fuzziness)
Parameters
Type Name Description
int fuzziness
Returns
Type Description
MatchQuery
View Source

MatchOperator(MatchOperator)

Specifies how the individual match terms should be logically concatenated.

Declaration
[InterfaceStability(Level.Uncommitted)]
public MatchQuery MatchOperator(MatchOperator matchOperator)
Parameters
Type Name Description
MatchOperator matchOperator

The MatchOperator(MatchOperator) used to match terms.

Returns
Type Description
MatchQuery

A MatchQuery object for chaining.

View Source

PrefixLength(int)

Declaration
public MatchQuery PrefixLength(int prefixLength)
Parameters
Type Name Description
int prefixLength
Returns
Type Description
MatchQuery

Implements

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