Class MatchPhraseQuery
A match query searches for terms occurring in the specified positions and offsets.
The input text is analyzed and a phrase query is built with the terms resulting from the analysis.
This depends on term vectors, which are consulted to determine phrase distance.
Inheritance
MatchPhraseQuery
Assembly: Couchbase.NetClient.dll
Syntax
public sealed class MatchPhraseQuery : SearchQueryBase, ISearchQuery
Constructors
View Source
MatchPhraseQuery(string)
Declaration
public MatchPhraseQuery(string matchPhrase)
Parameters
| Type |
Name |
Description |
| string |
matchPhrase |
|
Methods
View Source
Analyzer(string)
Declaration
public MatchPhraseQuery Analyzer(string analyzer)
Parameters
| Type |
Name |
Description |
| string |
analyzer |
|
Returns
View Source
AsReadOnly()
Declaration
public MatchPhraseQuery.ReadOnly AsReadOnly()
Returns
View Source
Deconstruct(out string, out string, out string)
Declaration
public void Deconstruct(out string matchPhrase, out string analyzer, out string field)
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 MatchPhraseQuery Field(string field)
Parameters
| Type |
Name |
Description |
| string |
field |
|
Returns
Implements