I have a field in my index which is an integer array. I want to add another field which contains the count of the number of elements.
Even an API call that gives the count is fine.
I have found something relevant :
"script" : "doc['MyField'].values.size()"
But I don't know how & where to use it.