Skip to content

Commit 718d70f

Browse files
committed
Add new allocation explain response properties added in ES 5.2.1
1 parent ca8f78c commit 718d70f

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

src/Nest/Cluster/ClusterAllocationExplain/ClusterAllocationExplainResponse.cs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Runtime.Serialization;
4-
using System.Security.Cryptography.X509Certificates;
54
using Newtonsoft.Json;
65
using Newtonsoft.Json.Converters;
76

@@ -295,7 +294,26 @@ public enum StoreCopy
295294
public class AllocationStore
296295
{
297296
[JsonProperty("shard_copy")]
297+
[Obsolete("Removed in Elasticsearch 5.2")]
298298
public StoreCopy ShardCopy { get; set; }
299+
300+
[JsonProperty("found")]
301+
public bool? Found { get; set; }
302+
303+
[JsonProperty("in_sync")]
304+
public bool? InSync { get; set; }
305+
306+
[JsonProperty("allocation_id")]
307+
public string AllocationId { get; set; }
308+
309+
[JsonProperty("matching_sync_id")]
310+
public bool? MatchingSyncId { get; set; }
311+
312+
[JsonProperty("matching_size_in_bytes")]
313+
public long? MatchingSizeInBytes { get; set; }
314+
315+
[JsonProperty("store_exception")]
316+
public string StoreException { get; set; }
299317
}
300318

301319
[JsonObject]

0 commit comments

Comments
 (0)