Table of Contents

Class UpdateRequestParameters

Namespace
Elasticsearch.Net
Assembly
Elasticsearch.Net.dll

Request options for Update

http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update.html
public class UpdateRequestParameters : RequestParameters<UpdateRequestParameters>, IRequestParameters
Inheritance
UpdateRequestParameters
Implements
Inherited Members

Constructors

UpdateRequestParameters()

public UpdateRequestParameters()

Properties

DefaultHttpMethod

public override HttpMethod DefaultHttpMethod { get; }

Property Value

HttpMethod

Lang

The script language (default: painless)

public string Lang { get; set; }

Property Value

string

Parent

ID of the parent document. Is is only used for routing and when for the upsert request

[Obsolete("Scheduled to be removed in 7.0, the parent parameter has been deprecated from elasticsearch, please use routing instead directly.")]
public string Parent { get; set; }

Property Value

string

Refresh

If true then refresh the effected 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 (the default) then do nothing with refreshes.

public Refresh? Refresh { get; set; }

Property Value

Refresh?

RetryOnConflict

Specify how many times should the operation be retried when a conflict occurs (default: 0)

public long? RetryOnConflict { get; set; }

Property Value

long?

Routing

Specific routing value

public string Routing { get; set; }

Property Value

string

SourceEnabled

True or false to return the _source field or not, or a list of fields to return

public bool? SourceEnabled { get; set; }

Property Value

bool?

Timeout

Explicit operation timeout

public TimeSpan Timeout { get; set; }

Property Value

TimeSpan

Version

Explicit version number for concurrency control

public long? Version { get; set; }

Property Value

long?

VersionType

Specific version type

public VersionType? VersionType { get; set; }

Property Value

VersionType?

WaitForActiveShards

Sets the number of shard copies that must be active before proceeding with the update operation. Defaults to 1, meaning the primary shard only. Set to all for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)

public string WaitForActiveShards { get; set; }

Property Value

string