Is there any solution in my query with terms
aggregation from:
{
"size":0
,"aggs":{
"packageid":{
"terms":{
"field":"packageId",
"size":10,
"from":10
},
"aggs": {
"top_tag_hits": {
"top_hits": {
"sort": [
{
"version": {
"order": "desc"
}
}
],
"size" : 1
}
}
}
}
}
}
I want from
, size
in terms
aggregation to paging top 10 lastest version package start index 10
and end index 20
.