Couchbase .NET SDK | 3.8.0
Search Results for

    Show / Hide Table of Contents

    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.

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

    Constructors

    | Edit this page View Source

    TermQuery(string)

    Declaration
    public TermQuery(string term)
    Parameters
    Type Name Description
    string term

    Methods

    | Edit this page View Source

    AsReadOnly()

    Declaration
    public TermQuery.ReadOnly AsReadOnly()
    Returns
    Type Description
    TermQuery.ReadOnly
    | Edit this page 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
    Type Name Description
    string term
    int fuzziness
    int prefixLength
    string field
    | Edit this page View Source

    Export()

    Gets a JSON object representing this query instance />

    Declaration
    public override JObject Export()
    Returns
    Type Description
    JObject
    Overrides
    SearchQueryBase.Export()
    | Edit this page View Source

    Field(string)

    The field to search against.

    Declaration
    public TermQuery Field(string field)
    Parameters
    Type Name Description
    string field

    The field.

    Returns
    Type Description
    TermQuery
    | Edit this page View Source

    Fuzziness(int)

    Declaration
    public TermQuery Fuzziness(int fuzziness)
    Parameters
    Type Name Description
    int fuzziness
    Returns
    Type Description
    TermQuery
    | Edit this page View Source

    PrefixLength(int)

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

    Implements

    ISearchQuery

    See Also

    SearchQueryBase
    • Edit this page
    • View Source
    In this article
    Back to top © 2025 Couchbase, Inc.