Search Results for

    Show / Hide Table of Contents

    Class CreateRequestParameters

    Request options for Create

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

    Inheritance
    object
    RequestParameters<CreateRequestParameters>
    CreateRequestParameters
    Implements
    IRequestParameters
    Inherited Members
    RequestParameters<CreateRequestParameters>.CustomResponseBuilder
    RequestParameters<CreateRequestParameters>.QueryString
    RequestParameters<CreateRequestParameters>.RequestConfiguration
    RequestParameters<CreateRequestParameters>.ContainsQueryString(string)
    RequestParameters<CreateRequestParameters>.GetQueryStringValue<TOut>(string)
    RequestParameters<CreateRequestParameters>.GetResolvedQueryStringValue(string, IConnectionConfigurationValues)
    RequestParameters<CreateRequestParameters>.SetQueryString(string, object)
    RequestParameters<CreateRequestParameters>.Q<TOut>(string)
    RequestParameters<CreateRequestParameters>.Q(string, object)
    RequestParameters<CreateRequestParameters>.SetAcceptHeader(string)
    RequestParameters<CreateRequestParameters>.AcceptHeaderFromFormat(string)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: OpenSearch.Net
    Assembly: OpenSearch.Net.dll
    Syntax
    public class CreateRequestParameters : RequestParameters<CreateRequestParameters>, IRequestParameters

    Properties

    | Edit this page View Source

    DefaultHttpMethod

    Declaration
    public override HttpMethod DefaultHttpMethod { get; }
    Property Value
    Type Description
    HttpMethod
    Overrides
    RequestParameters<CreateRequestParameters>.DefaultHttpMethod
    | 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

    Routing

    Custom value used to route operations to a specific shard.

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

    SupportsBody

    Declaration
    public override bool SupportsBody { get; }
    Property Value
    Type Description
    bool
    Overrides
    RequestParameters<CreateRequestParameters>.SupportsBody
    | Edit this page View Source

    Timeout

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

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

    Version

    Explicit version number for concurrency control. The specified version must match the current version of the document for the request to succeed.

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

    VersionType

    Specific version type: external, external_gte.

    Declaration
    public VersionType? VersionType { get; set; }
    Property Value
    Type Description
    VersionType?
    | 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

    IRequestParameters

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Properties
      • DefaultHttpMethod
      • Pipeline
      • Refresh
      • Routing
      • SupportsBody
      • Timeout
      • Version
      • VersionType
      • WaitForActiveShards
    • Implements
    • Extension Methods
    Back to top Generated by DocFX