also support _percolate for bulk item requests
This commit is contained in:
parent
21c4530aaf
commit
da98aab13f
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue