How can I access script field in map script of facet script plugin?

(kajal) #1

I need to use the script field value in my map script. I am not sure how
can i access that.
My query looks like this, I need to use value of state_info into my
map_REPORT script. Is it possible to access that??
"query": {

"script_fields": {
"state_info" : { "script" : "lookup", "lang" : native", "parems" :{
"field" : "state"}}
"facets": {
"reportFacet": {
"script": {
"init_script": "init_REPORT",
"map_script": "map_REPORT",
"reduce_script": "reduce_REPORT",
"params": {

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit

(system) #2