I want paging results using from and size attributes.
but, 'from' attribute in aggregation is not supported expression.
Can I get other approach?
Query Syntax:
{
"size": 0,
"query": {
"bool": {
"must": [{
"match_phrase": {
"name": "John"
}
}]
}
},
"aggs":{
"dedup" : {
"terms":{
"field": "job",
"from": 2, <<-- Is it possible??
"size": 1
},
"aggs":{
"dedup_docs":{
"top_hits":{
"size":1
}
}
}
}
}
}
This is error message:
"type": "search_parse_exception"
"reason": "Unknown key for a VALUE_NUMBER in [dedup]: [from].",