How do I access the _id field in Painless?

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.

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


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