ElasticSearch Aggregation + Sorting in on NonNumric Field 5.3
问题 I wanted to aggregate the data on a different field and also wanted to get the aggregated data on sorted fashion based on the name. My data is : { "_index": "testing-aggregation", "_type": "employee", "_id": "emp001_local000000000000001", "_score": 10.0, "_source": { "name": [ "Person 01" ], "groupbyid": [ "group0001" ], "ranking": [ "2.0" ] } }, { "_index": "testing-aggregation", "_type": "employee", "_id": "emp002_local000000000000001", "_score": 85146.375, "_source": { "name": [ "Person 02