Search Results for

    Show / Hide Table of Contents

    Interface IUpdateRequest<TDocument, TPartialDocument>

    Inherited Members
    IRequest<UpdateRequestParameters>.RequestParameters
    IRequest.ContentType
    IRequest.HttpMethod
    IRequest.RouteValues
    IRequest.GetUrl(IConnectionSettingsValues)
    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    public interface IUpdateRequest<TDocument, TPartialDocument> : IRequest<UpdateRequestParameters>, IRequest where TDocument : class where TPartialDocument : class
    Type Parameters
    Name Description
    TDocument
    TPartialDocument

    Properties

    | Edit this page View Source

    DetectNoop

    Declaration
    [DataMember(Name = "detect_noop")]
    bool? DetectNoop { get; set; }
    Property Value
    Type Description
    bool?
    | Edit this page View Source

    Doc

    Declaration
    [DataMember(Name = "doc")]
    TPartialDocument Doc { get; set; }
    Property Value
    Type Description
    TPartialDocument
    | Edit this page View Source

    DocAsUpsert

    Declaration
    [DataMember(Name = "doc_as_upsert")]
    bool? DocAsUpsert { get; set; }
    Property Value
    Type Description
    bool?
    | Edit this page View Source

    Id

    Declaration
    [IgnoreDataMember]
    Id Id { get; }
    Property Value
    Type Description
    Id
    | Edit this page View Source

    Index

    Declaration
    [IgnoreDataMember]
    IndexName Index { get; }
    Property Value
    Type Description
    IndexName
    | Edit this page View Source

    Script

    Declaration
    [DataMember(Name = "script")]
    IScript Script { get; set; }
    Property Value
    Type Description
    IScript
    | Edit this page View Source

    ScriptedUpsert

    If you would like your script to run regardless of whether the document exists or not — i.e. the script handles initializing the document instead of the upsert element — then set scripted_upsert to true

    Declaration
    [DataMember(Name = "scripted_upsert")]
    bool? ScriptedUpsert { get; set; }
    Property Value
    Type Description
    bool?
    | Edit this page View Source

    Source

    Declaration
    [DataMember(Name = "_source")]
    Union<bool, ISourceFilter> Source { get; set; }
    Property Value
    Type Description
    Union<bool, ISourceFilter>
    | Edit this page View Source

    Upsert

    Declaration
    [DataMember(Name = "upsert")]
    TDocument Upsert { get; set; }
    Property Value
    Type Description
    TDocument

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Properties
      • DetectNoop
      • Doc
      • DocAsUpsert
      • Id
      • Index
      • Script
      • ScriptedUpsert
      • Source
      • Upsert
    • Extension Methods
    Back to top Generated by DocFX