You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I had a bit of a thought earlier. elasticsearch has a billion and one options for API requests, and it can be easy to typo one and shoot one's self in the foot without noticing as elasticsearch won't really complain.
It would involve a bit of maintenance overhead keeping up with elasticsearch releases, but for the most part the API is pretty stable.
We could well validate options on every endpoint and make super fucking useful error messages like: "indxees is not a valid option this endpoint. Must be one of [ :indexes ]" or whatever
So I had a bit of a thought earlier. elasticsearch has a billion and one options for API requests, and it can be easy to typo one and shoot one's self in the foot without noticing as elasticsearch won't really complain.
It would involve a bit of maintenance overhead keeping up with elasticsearch releases, but for the most part the API is pretty stable.
We could well validate options on every endpoint and make super fucking useful error messages like: "indxees is not a valid option this endpoint. Must be one of [ :indexes ]" or whatever
Thoughts?
/cc @TwP @jbarnette
The text was updated successfully, but these errors were encountered: