Couchbase .NET SDK | 3.8.0
Search Results for

    Show / Hide Table of Contents

    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
    object
    SearchQueryBase
    MatchPhraseQuery
    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 MatchPhraseQuery : SearchQueryBase, ISearchQuery

    Constructors

    | Edit this page View Source

    MatchPhraseQuery(string)

    Declaration
    public MatchPhraseQuery(string matchPhrase)
    Parameters
    Type Name Description
    string matchPhrase

    Methods

    | Edit this page View Source

    Analyzer(string)

    Declaration
    public MatchPhraseQuery Analyzer(string analyzer)
    Parameters
    Type Name Description
    string analyzer
    Returns
    Type Description
    MatchPhraseQuery
    | Edit this page View Source

    AsReadOnly()

    Declaration
    public MatchPhraseQuery.ReadOnly AsReadOnly()
    Returns
    Type Description
    MatchPhraseQuery.ReadOnly
    | Edit this page View Source

    Deconstruct(out string, out string, out string)

    Declaration
    public void Deconstruct(out string matchPhrase, out string analyzer, out string field)
    Parameters
    Type Name Description
    string matchPhrase
    string analyzer
    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)

    Declaration
    public MatchPhraseQuery Field(string field)
    Parameters
    Type Name Description
    string field
    Returns
    Type Description
    MatchPhraseQuery

    Implements

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