Does doc['field_name'].values preserve order

Hi ,

In scripting shown here
does the values function returns the troken in the order in which it was

For eg: if the field value is as follows

"arrayData" : [ "one" , "two" , "three" ]

Will doc['arrayData'].values give results in the order in which it was
index , that is as [ "one , "two" , "three" ] ?

Vineeth Mohan,
Elasticsearch consultant, ( Elasticsearch service provider

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit