Doc
https://docs.spring.io/spring-data/elasticsearch/docs/current/reference/html/
聚合去重
http://192.168.1.100:9200/a-b/a_b/_search1
2
3
4
5
6
7
8
9
10
11
12{
"from": 0,
"size": 0,
"aggregations": {
"field1": {
"terms": {
"field": "xx",
"size": 21474837
}
}
}
}