Couchbase .NET SDK | 3.8.0
Search Results for

    Show / Hide Table of Contents

    Class PrefixQuery

    The prefix query finds documents containing terms that start with the provided prefix.

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

    Constructors

    | Edit this page View Source

    PrefixQuery(string)

    Declaration
    public PrefixQuery(string prefix)
    Parameters
    Type Name Description
    string prefix

    Methods

    | Edit this page View Source

    AsReadOnly()

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

    Deconstruct(out string, out string)

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

    The field.

    Returns
    Type Description
    PrefixQuery

    Implements

    ISearchQuery

    See Also

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