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 -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -