Skip to content
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

[Discover] - Exception sorting on scripted painless field #8431

Closed
stacey-gammon opened this issue Sep 22, 2016 · 1 comment
Closed

[Discover] - Exception sorting on scripted painless field #8431

stacey-gammon opened this issue Sep 22, 2016 · 1 comment
Labels
bug Fixes for quality problems that affect the customer experience v5.0.0

Comments

@stacey-gammon
Copy link
Contributor

stacey-gammon commented Sep 22, 2016

Created a custom scripted field with "doc['custom_number'].value * 2", format 'Number'.
Went to the discover tab and sorted by it and got an exception about casting string to number.

Error
Discover: java.lang.String cannot be cast to java.lang.Number

screen shot 2016-09-22 at 10 47 40 am 2

@stacey-gammon stacey-gammon changed the title [Discover [Discover] - Exception sorting on scripted painless field Sep 22, 2016
@stacey-gammon stacey-gammon added bug Fixes for quality problems that affect the customer experience v5.0.0 labels Sep 22, 2016
@stacey-gammon
Copy link
Contributor Author

Scratch that, I believe quotes in the scripted portion was throwing that off. When I remove the quotes, I encounter an error from #8404 however - this time throwing runtime error instead of compile error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience v5.0.0
Projects
None yet
Development

No branches or pull requests

1 participant