Couchbase .NET SDK | 3.8.0
Search Results for

    Show / Hide Table of Contents

    Class DocIdQuery

    A docId query is a query that directly matches the documents whose ID have been provided. It can be combined within a ConjunctionQuery to restrict matches on the set of documents.

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

    Constructors

    | Edit this page View Source

    DocIdQuery(params string[])

    Declaration
    public DocIdQuery(params string[] docIds)
    Parameters
    Type Name Description
    string[] docIds

    Methods

    | Edit this page View Source

    Add(params string[])

    Adds the specified document ids.

    Declaration
    public DocIdQuery Add(params string[] docIds)
    Parameters
    Type Name Description
    string[] docIds

    The document ids.

    Returns
    Type Description
    DocIdQuery
    | Edit this page View Source

    AsReadOnly()

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

    Deconstruct(out IReadOnlyList<string>)

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

    Implements

    ISearchQuery

    See Also

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