Skip duplicates on field in a Elasticsearch search result
问题 Is it possible to remove duplicates on a given field? For example the following query: { "query": { "term": { "name_admin": { "value": "nike" } } }, "_source": [ "name_admin", "parent_sku", "sku" ], "size": 2 } is retrieving "hits" : [ { "_index" : "product", "_type" : "_doc", "_id" : "central30603", "_score" : 4.596813, "_source" : { "parent_sku" : "SSP57", "sku" : "SSP57816401", "name_admin" : "NIKE U NSW PRO CAP NIKE AIR" } }, { "_index" : "product", "_type" : "_doc", "_id" :