Class TermQuery
A term query is a query that may be "fuzzy" and matches terms within a specified edit distance (Levenshtein distance).
Also, you can optionally specify that the term must have a matching prefix of the specified length.
Assembly: Couchbase.NetClient.dll
Syntax
public sealed class TermQuery : SearchQueryBase, ISearchQuery
Constructors
View Source
TermQuery(string)
Declaration
public TermQuery(string term)
Parameters
| Type |
Name |
Description |
| string |
term |
|
Methods
View Source
AsReadOnly()
Declaration
public TermQuery.ReadOnly AsReadOnly()
Returns
View Source
Deconstruct(out string, out int, out int, out string)
Declaration
public void Deconstruct(out string term, out int fuzziness, out int prefixLength, 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)
The field to search against.
Declaration
public TermQuery Field(string field)
Parameters
| Type |
Name |
Description |
| string |
field |
The field.
|
Returns
View Source
Fuzziness(int)
Declaration
public TermQuery Fuzziness(int fuzziness)
Parameters
| Type |
Name |
Description |
| int |
fuzziness |
|
Returns
View Source
PrefixLength(int)
Declaration
public TermQuery PrefixLength(int prefixLength)
Parameters
| Type |
Name |
Description |
| int |
prefixLength |
|
Returns
Implements
See Also