June 2017
Beginner to intermediate
404 pages
8h 22m
English
We discussed how to set the mappings for nested documents in the nested data type section before. When documents are stored as nested documents, they are stored as hidden documents and are managed by Elasticsearch. But the disadvantage is that to update the parent or the nested document, the entire document needs to be updated. For example, we have the user document as shown here:
{ "id": 1, "name": "User1", "address": [ #Nested { "street": "123 High Lane", "city": "Big City" }, { "street" : "436 Low Lane", "city": "Small City" }}
To update parent document fields like name or to update the nested document fields like street the entire user document needs to updated. Nested documents like address cannot be accessed independently as ...
Read now
Unlock full access