stats aggregation returns 500 error when performed over an invalid field #12842
Labels
:Analytics/Aggregations
Aggregations
>bug
:Core/Infra/Core
Core issues without another label
help wanted
adoptme
Performing a stats aggregation over a string field throws 500 error with an exception as opposed to a simplified error stating the the field specified is not valid for a stats aggregation.
I would expect a 400 for example since the client to fix their request before retrying it. Additionally it would help if the error message was more indicative of the problem as opposed to a SearchPhaseExecutionException. I would hope we should be able to detect this prior to performing the actual search.
The text was updated successfully, but these errors were encountered: