-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
CompositeAggregationSource is not serialized correctly #7822
Comments
I can confirm that this is a bug. The Lines 38 to 39 in a61e803
but the Lines 272 to 273 in a61e803
This is a bug in the code generator and as well affects |
Hi, when can we expect that CompositeAggregation is fixed in v8 Elasticsearch client? |
Hi, in the latest release (8.12.0) CompositeAggregationSource class no longer has any fields, it's an empty sealed class: So you can't perform any Sources query.. |
Any update on this? Our solution would really love to make use of that paging feature. Sending clients a 65k+ entry response is very unideal. |
Hi @thebmo, could you please check if it's working for you in 8.13.1? This version is based on a completely revised code generator. |
Thanks @flobernd It looks to be working now, thanks for a zippy response. To your point, the fluent api patterns seemed to have dramatically changed but we were able to append our aggregations such. Hopefully this helps others as the documentation isnt quite there yet. Note that the (dotnet v8 on the 8.13.1 version of
|
@thebmo Glad to hear that it's working now 🙂 Thank you as well for the example. This will indeed be useful to other users. This particular change is documented in the release notes of the GitHub release (that's probably not a prominent place ... I'll make sure to port the release notes over to our official documentation). Closing this issue right now as the original bug is fixed. Feel free to open a new one in case you encounter another bug or if you need assistance with anything else. |
Elastic.Clients.Elasticsearch version: 8.6.2
Elasticsearch version: 8.1.1
.NET runtime version: 6.0
Operating system version: Windows 11
Description of the problem including expected versus actual behavior:
CompositeAggregationSource is not serialized correctly. The query below is serialized to
Which fails to parse on the elastic search side as there are one nested "terms" to much. The error returned is:
[composite] failed to parse field [sources]","caused_by":{"type":"x_content_parse_exception","reason":"[1:91] [terms] unknown field [terms]"}}
Steps to reproduce:
Expected behavior
I would expect the json to be:
The text was updated successfully, but these errors were encountered: