Search Results for

    Show / Hide Table of Contents

    Class BulkRequest

    Request for Bulk

    https://opensearch.org/docs/latest/api-reference/document-apis/bulk/

    Inheritance
    object
    RequestBase<BulkRequestParameters>
    PlainRequestBase<BulkRequestParameters>
    BulkRequest
    Implements
    IBulkRequest
    IRequest<BulkRequestParameters>
    IRequest
    Inherited Members
    PlainRequestBase<BulkRequestParameters>.RequestConfiguration
    PlainRequestBase<BulkRequestParameters>.ErrorTrace
    PlainRequestBase<BulkRequestParameters>.FilterPath
    PlainRequestBase<BulkRequestParameters>.Human
    PlainRequestBase<BulkRequestParameters>.Pretty
    PlainRequestBase<BulkRequestParameters>.SourceQueryString
    RequestBase<BulkRequestParameters>.HttpMethod
    RequestBase<BulkRequestParameters>.RequestState
    RequestBase<BulkRequestParameters>.ContentType
    RequestBase<BulkRequestParameters>.ResolveUrl(RouteValues, IConnectionSettingsValues)
    RequestBase<BulkRequestParameters>.RequestDefaults(BulkRequestParameters)
    RequestBase<BulkRequestParameters>.Q<TOut>(string)
    RequestBase<BulkRequestParameters>.Q(string, object)
    RequestBase<BulkRequestParameters>.SetAcceptHeader(string)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    public class BulkRequest : PlainRequestBase<BulkRequestParameters>, IBulkRequest, IRequest<BulkRequestParameters>, IRequest

    Constructors

    | Edit this page View Source

    BulkRequest()

    /_bulk

    Declaration
    public BulkRequest()
    | Edit this page View Source

    BulkRequest(IndexName)

    /{index}/_bulk

    Declaration
    public BulkRequest(IndexName index)
    Parameters
    Type Name Description
    IndexName index

    Optional, accepts null

    Properties

    | Edit this page View Source

    Operations

    Declaration
    public BulkOperationsCollection<IBulkOperation> Operations { get; set; }
    Property Value
    Type Description
    BulkOperationsCollection<IBulkOperation>
    | Edit this page View Source

    Pipeline

    ID of the pipeline to use to preprocess incoming documents. If the index has a default ingest pipeline specified, then setting the value to _none disables the default ingest pipeline for this request. If a final pipeline is configured it will always run, regardless of the value of this parameter.

    Declaration
    public string Pipeline { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Refresh

    If true, OpenSearch refreshes the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false do nothing with refreshes. Valid values: true, false, wait_for.

    Declaration
    public Refresh? Refresh { get; set; }
    Property Value
    Type Description
    Refresh?
    | Edit this page View Source

    RequireAlias

    If true, the request's actions must target an index alias.

    Declaration
    public bool? RequireAlias { get; set; }
    Property Value
    Type Description
    bool?
    | Edit this page View Source

    Routing

    A document is routed to a particular shard in an index using the following formula

    shard_num = hash(_routing) % num_primary_shards

    OpenSearch will use the document id if not provided.

    For requests that are constructed from/for a document OpenSearch.Client will automatically infer the routing key if that document has a JoinField or a routing mapping on for its type exists on ConnectionSettings

    Declaration
    public Routing Routing { get; set; }
    Property Value
    Type Description
    Routing
    | Edit this page View Source

    Self

    Declaration
    protected IBulkRequest Self { get; }
    Property Value
    Type Description
    IBulkRequest
    | Edit this page View Source

    SourceEnabled

    Whether the _source should be included in the response.

    Declaration
    public bool? SourceEnabled { get; set; }
    Property Value
    Type Description
    bool?
    | Edit this page View Source

    SourceExcludes

    A comma-separated list of source fields to exclude from the response.

    Declaration
    public Fields SourceExcludes { get; set; }
    Property Value
    Type Description
    Fields
    | Edit this page View Source

    SourceIncludes

    A comma-separated list of source fields to include in the response.

    Declaration
    public Fields SourceIncludes { get; set; }
    Property Value
    Type Description
    Fields
    | Edit this page View Source

    Timeout

    Period each action waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards.

    Declaration
    public Time Timeout { get; set; }
    Property Value
    Type Description
    Time
    | Edit this page View Source

    Type

    Default document type for items which don't provide one.

    Declaration
    public string Type { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    WaitForActiveShards

    The number of shard copies that must be active before proceeding with the operation. Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1).

    Declaration
    public string WaitForActiveShards { get; set; }
    Property Value
    Type Description
    string

    Implements

    IBulkRequest
    IRequest<TParameters>
    IRequest

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Constructors
      • BulkRequest()
      • BulkRequest(IndexName)
    • Properties
      • Operations
      • Pipeline
      • Refresh
      • RequireAlias
      • Routing
      • Self
      • SourceEnabled
      • SourceExcludes
      • SourceIncludes
      • Timeout
      • Type
      • WaitForActiveShards
    • Implements
    • Extension Methods
    Back to top Generated by DocFX