How can I handle duplicate data in Elasticsearch?
问题 I have used parent & child mapping to normalize data but as far as I understand there is no way to get any fields from _parent document. Here is the mapping of my index: { "mappings": { "building": { "properties": { "name": { "type": "string" } } }, "flat": { "_parent": { "type": "building" }, "properties": { "name": { "type": "string" } } }, "room": { "_parent": { "type": "flat" }, "properties": { "name": { "type": "string" }, "floor": { "type": "long" } } } } } Now, I'm trying to find the