New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Missing" aggregation fails when object containing aggregation field is missing as well #5190
Comments
Indeed the missing aggregation should work on fields that are not mapped and count every hit as a document that misses the field. I just tried to reproduce this issue without luck, could you please try to either provide us with a curl recreation or give the stacktrace of the |
@jpountz No logs just what I get in the response (maybe I need to switch in debug mode?) here is the recreation. it does not fail if missing is the only aggregation or the sibling bucket aggs is on some other field only when you do say terms on a field and next to it missing on the same field |
hi @roytmana, this is indeed a bug, will be working on fixing it. Thx for reporting! |
…ame + required Value Source type as a combi key (used to be only field name). This fixes a problem where multiple aggregations where defined on the same field, yet require different types of value sources. Closes #5190
…ame + required Value Source type as a combi key (used to be only field name). This fixes a problem where multiple aggregations where defined on the same field, yet require different types of value sources. Closes #5190
Tests most probably failed because of #5190 (see elastic/elasticsearch#5190). I'm not entirely sure why this succeeds in 1.3.4 but fails with 1.4.0.Beta1 though.
…ame + required Value Source type as a combi key (used to be only field name). This fixes a problem where multiple aggregations where defined on the same field, yet require different types of value sources. Closes elastic#5190
say our data structure is
vendor object is optional to the invoice and may be absent
when calculating missing aggregation on vendor.id it fails with
I would expect missing aggregation to treat missing parent objects of the field the aggregation is calculated for as if the field itself is missing or it would be virtually impossible to guarantee that such aggregation would finish successfully over deeply nested graphs where any part of the path to the missing field may be absent
The text was updated successfully, but these errors were encountered: