# Inner object flattening order

**URL:** <https://discuss.elastic.co/t/inner-object-flattening-order/14676>\
**Category:** Elasticsearch\
**Created:** [December 3, 2013, 11:49am UTC](https://discuss.elastic.co/t/inner-object-flattening-order/14676 "2013-12-03T11:49:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hasham\_Ahmad](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hasham_ahmad/32/1939_2.png) [@Hasham\_Ahmad](https://discuss.elastic.co/u/Hasham_Ahmad)\
**Post date:** [December 3, 2013, 11:49am UTC](https://discuss.elastic.co/t/inner-object-flattening-order/14676/1 "2013-12-03T11:49:37Z")

</div>

Hello, is it safe to assume that multiple inner objects on a document will  
be flattened into a consistent order? Given the example at

> **[Managing Relations Inside Elasticsearch
	  	 | Elastic](https://www.elastic.co/blog/managing-relations-inside-elasticsearch)**
>
> Data in the real world is rarely simple - often times it is a jumble of interlocking relations. How do you represent relational data in Elasticsearch? There are a few mechanisms that can be used to pr...

  
will the order of the flattened items always be consistent as shown:

{  
"name" : "Zach",  
"car.make" : ["Saturn", "Subaru"]  
"car.model" : ["SL", "Imprezza"]  
}

The reason I ask is because i want to know if a script can use the arracy indicies to correleate items in the arrays.

thanks

Hash

--  
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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/47bc5306-069f-4b1b-85bb-6df92fb8be0d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/47bc5306-069f-4b1b-85bb-6df92fb8be0d%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:03am UTC](https://discuss.elastic.co/t/inner-object-flattening-order/14676/2 "2017-07-06T02:03:38Z")

</div>

Closed on July 6, 2017, 2:03am UTC


