Hi,
I have created a scripted field test and the script is
if (params['_source']['additional'] == null) {
return -1
}
return params['_source']['additional'].length()
The type of the field is number.
This works fine in the sense that i can see the field and its correct value in discover. But when i try to apply filter of between i.e test: 10 to 100 i get an the below error
Error executing Painless script: 'boolean gte(Supplier s, def v) {return s.get() >= v} boolean lt(Supplier s, def v) {return s.get() < v}gte(() -> { if (params['_source']['additional'] == null) { ...'.
Would someone please let me know how can i get this working.
Thanks in advance.