Elasticsearch: Merge result of aggregation by bucket key
问题 I've indexed entities in Elasticsearch, which occur in my documents. The mapping for the entities looks like the following: "Entities": { "properties": { "EntFrequency": { "type": "long" }, "EntId": { "type": "long" }, "EntType": { "type": "string", "analyzer": "english", "fields": { "raw": { "type": "string", "index": "not_analyzed" } } }, "Entname": { "type": "string", "analyzer": "english", "fields": { "raw": { "type": "string", "index": "not_analyzed" } } } } }, [...] Furthermore, I use