Skip to content

Commit

Permalink
Merge pull request elastic#14 from nitishgoyal13/nitish/rest-client-1…
Browse files Browse the repository at this point in the history
….4.1

ES 5 Migration routing fix
  • Loading branch information
rahulanishetty committed Jul 3, 2017
2 parents e0755c6 + 7a3de9e commit 6df929d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,9 @@ public HttpEntity getBulkEntity() throws IOException {
if (Strings.hasLength(parent)) {
actionMetadata.put("parent", parent);
}
if (Strings.hasLength(routing)) {
actionMetadata.put("routing", routing);
}
payload.put(opType.name().toLowerCase(Locale.ROOT), actionMetadata);
String json = XContentHelper.convertToJson(payload, false);

Expand Down

0 comments on commit 6df929d

Please sign in to comment.