0
我想要得到的maximun ID形成資質對象的一個分支,如何使用maxAggregation開玩笑elasticsearch
{
"mappings": {
"aptitude": {
"dynamic": "strict",
"properties": {
"id": {
"type": "long"
},
"es": {
"type": "text"
},
"en": {
"type": "text"
},
"behaviors": {
"properties": {
"id": {
"type": "long"
},
"es": {
"type": "text"
},
"en": {
"type": "text"
}
}
}
}
}
}
正如你所看到的資質有行爲誰又將有一個id的數組, afaik我應該使用Jest的maxAggregation,但無法找到一個體面的例子,如何在java中做到這一點,有人可以幫忙嗎?