Accessing elements in array

https://www.elastic.co/guide/en/elasticsearch/reference/current/nested.html

can we access elements in "user.first" such as user.first[0] and user.first[1]
user.first[0] = alice
user.first[1] = john

is it possible

I'm assuming you're talking about in a scripted field, and yes you can:

params._source.user.first[0] etc.

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