Hi ,
I have aggregation Query with Composite Aggregation builder with spring data elasticsearch which provides after_key value,which return last aggregated count with That I am able do forward pagination.
Sample Query:
"aggs": {
"my_buckets": {
"composite": {
"sources": [
{
"price": {
"terms": {
"field": "price.discounted"
}
}
}
]
}
}
}
For backward pagination ,didn't found any proper reference.
Could anyone help,please?