-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Search] sorting scripted string fields throws error #72655
Comments
Pinging @elastic/kibana-app (Team:KibanaApp) |
Pinging @elastic/kibana-app-arch (Team:AppArch) |
See in this example that "type" is wrong |
@edmarmoretti Yup, thanks there is a PR up to fix this here #72681 |
Kibana version:
7.5
and7.8
Describe the bug:
Sorting a
string
type scripted field in discover throws an error.Steps to reproduce:
string
type scripted field. Something simple like...Expected behavior:
Sorting of scripted
string
fieldsScreenshots (if relevant):
Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):
ES request error
Any additional context:
The discovered request appears to be setting the wrong type (i.e.
number
) for the scripted field which is causing the error. When changed to the correct type (i.e.string
), the request is successful.The text was updated successfully, but these errors were encountered: