Skip to content

Commit 8944ee5

Browse files
committed
bulk uses _routing while valid this produces deprecation warnings as per elastic/elasticsearch#27414
1 parent 7053097 commit 8944ee5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Nest/Document/Multiple/Bulk/BulkOperation/IBulkOperation.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ public interface IBulkOperation
2020
[JsonProperty("_id")]
2121
Id Id { get; set; }
2222

23-
[JsonProperty("_version")]
23+
[JsonProperty("version")]
2424
long? Version { get; set; }
2525

26-
[JsonProperty("_version_type")]
26+
[JsonProperty("version_type")]
2727
[JsonConverter(typeof(StringEnumConverter))]
2828
VersionType? VersionType { get; set; }
2929

30-
[JsonProperty("_routing")]
30+
[JsonProperty("routing")]
3131
string Routing { get; set; }
3232

33-
[JsonProperty("_parent")]
33+
[JsonProperty("parent")]
3434
Id Parent { get; set; }
3535

3636
[JsonProperty("_timestamp")]
@@ -41,7 +41,7 @@ public interface IBulkOperation
4141
[Obsolete("This feature is no longer supported on indices created in Elasticsearch 5.0.0 and up")]
4242
Time Ttl { get; set; }
4343

44-
[JsonProperty("_retry_on_conflict")]
44+
[JsonProperty("retry_on_conflict")]
4545
int? RetriesOnConflict { get; set; }
4646

4747
object GetBody();

0 commit comments

Comments
 (0)