debugging groovy script elasticsearch -
how possible print or log variables using groovy script scoring? know there log directories, don't log print in script.
ok, said, here 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 script , check value of totestfield in response,
i think easy way debug.
Comments
Post a Comment