Does Elasticsearch keep an order of multi-value fields?
I.e. if I\'ve put following values into fields:
{
\"values\": [\"one\", \"two\", \"three\
Elasticsearch - The Definitive Guide says the following:
When you get a document back from Elasticsearch, any arrays will be in the same order as when you indexed the document. The _source field that you get back contains exactly the same JSON document that you indexed.
However, arrays are indexed—made searchable—as multivalue fields, which are unordered. At search time, you can’t refer to “the first element” or “the last element.” Rather, think of an array as a bag of values.
So it seems that for stored fields order is preserved, for indexed fields it's not.