also support _percolate for bulk item requests

This commit is contained in:
Shay Banon 2011-11-13 10:18:39 +02:00
parent 21c4530aaf
commit da98aab13f
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ public class BulkRequest implements ActionRequest {
version = parser.longValue(); version = parser.longValue();
} else if ("_version_type".equals(currentFieldName) || "_versionType".equals(currentFieldName) || "version_type".equals(currentFieldName) || "versionType".equals(currentFieldName)) { } else if ("_version_type".equals(currentFieldName) || "_versionType".equals(currentFieldName) || "version_type".equals(currentFieldName) || "versionType".equals(currentFieldName)) {
versionType = VersionType.fromString(parser.text()); versionType = VersionType.fromString(parser.text());
} else if ("percolate".equals(currentFieldName)) { } else if ("percolate".equals(currentFieldName) || "_percolate".equals(currentFieldName)) {
percolate = parser.textOrNull(); percolate = parser.textOrNull();
} }
} }