mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-25 06:16:40 +00:00
Nested facet execution can fail with ArrayIndexOutOfBounds, closes #1467.
This commit is contained in:
parent
dc2824fe06
commit
9bf42fed1b
@ -79,6 +79,9 @@ public class NestedChildrenCollector extends FacetCollector {
|
||||
}
|
||||
|
||||
@Override public void collect(int parentDoc) throws IOException {
|
||||
if (parentDoc == 0) {
|
||||
return;
|
||||
}
|
||||
int prevParentDoc = parentDocs.prevSetBit(parentDoc - 1);
|
||||
for (int i = (parentDoc - 1); i > prevParentDoc; i--) {
|
||||
if (!currentReader.isDeleted(i) && childDocs.get(i)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user