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
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
The text was updated successfully, but these errors were encountered:
stacey-gammon
changed the title
[Discover
[Discover] - Exception sorting on scripted painless field
Sep 22, 2016
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.
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
The text was updated successfully, but these errors were encountered: