Couchbase .NET SDK | 3.8.0
Search Results for

    Show / Hide Table of Contents

    Class RegexpQuery

    Regexp query finds documents containing terms that match the specified regular expression.

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

    Constructors

    | Edit this page View Source

    RegexpQuery(string)

    Initializes a new instance of the RegexpQuery class.

    Declaration
    public RegexpQuery(string regex)
    Parameters
    Type Name Description
    string regex

    The regexp to be analyzed and used against. The regexp string is required.

    Exceptions
    Type Condition
    ArgumentNullException

    regex

    Methods

    | Edit this page View Source

    AsReadOnly()

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

    Deconstruct(out string, out string)

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

    If a field is specified, only terms in that field will be matched. This can also affect the used analyzer if one isn't specified explicitly.

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

    The field.

    Returns
    Type Description
    RegexpQuery

    Implements

    ISearchQuery

    See Also

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