debugging groovy script elasticsearch debugging groovy script elasticsearch elasticsearch elasticsearch

debugging groovy script elasticsearch


Ok, as you said, Here is my way of doing so.

curl -XPOST "http://localhost:9200/index/type/_search" -d'{    "size": 1,     "script_fields": {       "toTestField": {          "script": "_source.field_name.equals('key')? true : false "       }    }}'

Change the script and Check the value of toTestField in response,

I think it is easy way to debug.