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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

python - Django-cities exits with "killed" -

python - How to get a widget position inside it's layout in Kivy? -