In some cases it can be useful to store data in the Elasticsearch index as nested
objects so that they can be queried independently of each other.
The following example defines a field
article with a number of “nested” attributes:
FieldConfiguration results in the following Elasticsearch mapping:
Nested documents can be added to a document using the
Above example data results in following Elasticsearch index documents:
Nested fields can be searched via
Expression in the same way as normal fields.
The nested attribute must be added to the corresponding field name, separated with a “.”:
A nested search sample can be found here.