-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Add "did you mean" to unknown queries #51177
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
Conversation
This replaces the message we return for unknown queries with the standard one that we use for unknown fields from `ObjectParser`. This is nice because it includes "did you mean". One day we might convert parsing queries to using object parser, but that looks complex. This change is much smaller and seems useful.
Pinging @elastic/es-search (:Search/Search) |
We had a comment that made a big deal about preserving the error message for unknown queries for backwards compatibility. I'm not actually sure that we offer backwards compatibility in error reporting at all though. At least for now I'm only targeting 8.0 with this. But it is a nice change so maybe it should hit 7.x too? |
I talked to @jasontedor and he thinks this is ok to backport. That is good enough for me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @nik9000
This replaces the message we return for unknown queries with the standard one that we use for unknown fields from `ObjectParser`. This is nice because it includes "did you mean". One day we might convert parsing queries to using object parser, but that looks complex. This change is much smaller and seems useful.
This replaces the message we return for unknown queries with the standard one that we use for unknown fields from `ObjectParser`. This is nice because it includes "did you mean". One day we might convert parsing queries to using object parser, but that looks complex. This change is much smaller and seems useful.
This replaces the message we return for unknown queries with the standard
one that we use for unknown fields from
ObjectParser
. This is nicebecause it includes "did you mean". One day we might convert parsing
queries to using object parser, but that looks complex. This change is
much smaller and seems useful.