-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Undeprecate "aggs" in search request bodies #19504
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
Comments
I think it'd be nice to wait until #19509 is merged so we can assert things about headers in the REST tests. |
Oops, I think this was me sorry. The problem is here: elasticsearch/core/src/main/java/org/elasticsearch/search/builder/SearchSourceBuilder.java Line 94 in dec620c
The issue is that currently If it is the latter I would suggest keeping the constructor in ParseField as is so only the first name is taken as an acceptable name and the rest are deprecated, and then add a As for #19509 it would be great if post that PR we could add a check to all calls made in rest tests to ensure they do not contain a warning header and if so fail the test (since most tests should not be using deprecated options). For any tests that do need to test deprecated options we could add a wdyt? |
Actually we should also set the REST tests to have strict parsing anyway so using deprecated functionality causes an exception and the request to be rejected (unless the |
I opened #19533 to fix this using the |
I think it might be better to call it |
Yes, that sounds good. I'd honestly really like to make that change. |
Uh oh!
There was an error while loading. Please reload this page.
"aggs" accidentally got deprecated as a field name in requests, we should un-deprecate it since it is a supported parameter in search requests.
The text was updated successfully, but these errors were encountered: