Skip to content

Commit b28b6df

Browse files
committed
Bulk API: _version on delete actions is not honored, closes elastic#1156.
1 parent 6c4124d commit b28b6df

File tree

1 file changed

+1
-1
lines changed
  • modules/elasticsearch/src/main/java/org/elasticsearch/action/bulk

1 file changed

+1
-1
lines changed

modules/elasticsearch/src/main/java/org/elasticsearch/action/bulk/BulkRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public BulkRequest add(byte[] data, int from, int length, boolean contentUnsafe)
145145
}
146146

147147
if ("delete".equals(action)) {
148-
add(new DeleteRequest(index, type, id).parent(parent).versionType(versionType).routing(routing));
148+
add(new DeleteRequest(index, type, id).parent(parent).version(version).versionType(versionType).routing(routing));
149149
} else {
150150
nextMarker = findNextMarker(marker, from, data, length);
151151
if (nextMarker == -1) {

0 commit comments

Comments
 (0)