Aggregations: ReverseNestedAggregator
does not compute parent documents correctly
#6278
Labels
ReverseNestedAggregator
does not compute parent documents correctly
#6278
In order to compute parent documents based on a child document,
ReverseNestedAggregator
does the following:But the behavior of
advance
is undefined when the target is less than or equal to the target document, which can happen if you have 2 matching child documents that have the same parent.This works fine in most cases when the filter cache is enabled since
FixedBitSet
is permissive and would go the the next set bit afterchildDoc
. But if the filter cache is disabled then you might run into trouble.The text was updated successfully, but these errors were encountered: