How do I access the _id field in Painless?


(Tal Weiss) #1

Every time I try something like this:

doc['_id'] + "/" + doc['site_code'].value
doc['_index'] + "/" + doc['site_code'].value
ctx._index + "/" + doc['site_code'].value

All shards crash???

Not very friendly. I'm trying a scripted filed via Kibana with latest hosting plan.


(Igor KupczyƄski) #2

Hi @Tal_Weiss, I moved your post to elasticsearch category as I think that it can get a better answer here.

Thanks,
Igor


(system) #3

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.