title: Does Elasticsearch keep an order of multi-value fields?
body: <p>Does Elasticsearch keep an order of multi-value fields?</p>
  
  <p>I.e. if I've put following values into fields:</p>
  
  <pre><code>{
      "values": ["one", "two", "three"],
      "values_original": ["1", "2", "3"]
  }
  </code></pre>
  
  <p>(Given that fields are not analyzed)</p>
  
  <p>Can I be sure that the contents of lists will always be returned in the same order I put it there?</p>
  
  <p>In the example above, I want to make sure that "one" on first position in "values" will always correspond to "1" in "values_original" etc.</p>
  
  <p>I could keep it also as nested objects, i.e.</p>
  
  <pre><code>{
      "values": [
          {"original": "1", "new": "one"}, 
          {"original":"2", "new":"two"},
          {"original":"3","new":"three"}
      ]
  }
  </code></pre>
  
  <p>but I want to avoid the overhead.</p>
  
  <p>If it is guaranteed that order of values in multi-value field is preserved, then my approach of keeping two parallel multi-valued fields will work.</p>