Interface IUpdateRequest<TDocument, TPartialDocument>
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
|
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
|
Edit this page
View Source
Id
Declaration
[IgnoreDataMember]
Id Id { get; }
Property Value
|
Edit this page
View Source
Index
Declaration
[IgnoreDataMember]
IndexName Index { get; }
Property Value
|
Edit this page
View Source
Script
Declaration
[DataMember(Name = "script")]
IScript Script { get; set; }
Property Value
|
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
|
Edit this page
View Source
Source
Declaration
[DataMember(Name = "_source")]
Union<bool, ISourceFilter> Source { get; set; }
Property Value
|
Edit this page
View Source
Upsert
Declaration
[DataMember(Name = "upsert")]
TDocument Upsert { get; set; }
Property Value
Type |
Description |
TDocument |
|
Extension Methods