Accessing elements in array

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.