-
Notifications
You must be signed in to change notification settings - Fork 190
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
[BUG] Nested/Sub Aggregations are not sending back buckets containing the data #197
Comments
Would appreciate a PR with the fix. Please be mindful of not copying non-APLv2 code. |
@dblock And I see here that they use code generation from that spec: elastic/elasticsearch-java@7444423 How is this code generation done? I need to generate it since this this code gen appears to fix the issue. |
@joelbolt35 TBH I don't know. I don't think we generated any code here since the fork, and the spec has diverged. We thus don't want to use the upstream elasticsearch-specification. I suppose it would be ok to make small fixes by hand? In the short term, we did start forking elasticsearch-specification at the time, but didn't finish it. We still can at its last APLv2 iteration if that's the right thing to do. WDYT? The long term plan I'd like to take is opensearch-project/opensearch-clients#19. It's similar to what elastic is doing, except we chose different tooling. For opensearch-java this means swapping the elastic spec for https://github.com/opensearch-project/opensearch-api-specification (or its output). It would be amazing if someone could attempt that, even if to see what the gap is. |
I am also struggling with the same issue with Nested and Multi term aggregation, as well, any chances of quick fix on this? |
@abhinav-nath Someone (you?) needs to contribute a fix for this in OpenSearch (without copying ES code). I don't think there's another way. |
Any idea when this will be released? |
Please add your +1 to #253 |
This was released in v2.2.0. |
What is the bug?
This is a duplicate bug from the elastic search java client:
elastic/elasticsearch-java#87
How can one reproduce the bug?
Create ANY nested aggregation for terms. There is no way to retrieve results
What is the expected behavior?
Nested Queries work.
What is your host/environment?
Linux (Ubuntu 18.04). Using opensearch-rest-clientv2.1.0 and opensearch-javav2.0.0
Do you have any screenshots?
the docCount is correct but I can't see the data since the deserializer tossed it.
The text was updated successfully, but these errors were encountered: