You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Arrays of objects do not work as you would expect: you cannot query each
18
-
object independently of the other objects in the array. If you need to be
19
-
able to do this then you should use the <<nested,`nested`>> data type instead
20
-
of the <<object,`object`>> data type.
17
+
Arrays of objects in Elasticsearch do not behave as you would expect: queries may match fields across different objects in the array, leading to unexpected results. By default, arrays of objects are <<nested-arrays-flattening-objects,flattened>>
18
+
during indexing. To ensure queries match values within the same object, use the <<nested,`nested`>> data type instead of the <<object,`object`>> data type.
21
19
22
-
This is explained in more detail in <<nested>>.
20
+
This behavior is explained in more detail in <<nested-arrays-flattening-objects, `nested`>>.
0 commit comments