Class MatchQuery
A query that analyzes the input text and uses that analyzed text to query the index.
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
View Source
AsReadOnly()
Declaration
public MatchQuery.ReadOnly AsReadOnly()
Returns
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
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
Overrides
View Source
Field(string)
Declaration
public MatchQuery Field(string field)
Parameters
| Type |
Name |
Description |
| string |
field |
|
Returns
View Source
Fuzziness(int)
Declaration
public MatchQuery Fuzziness(int fuzziness)
Parameters
| Type |
Name |
Description |
| int |
fuzziness |
|
Returns
View Source
MatchOperator(MatchOperator)
Specifies how the individual match terms should be logically concatenated.
Declaration
[InterfaceStability(Level.Uncommitted)]
public MatchQuery MatchOperator(MatchOperator matchOperator)
Parameters
Returns
View Source
PrefixLength(int)
Declaration
public MatchQuery PrefixLength(int prefixLength)
Parameters
| Type |
Name |
Description |
| int |
prefixLength |
|
Returns
Implements