I have a nested field datas
which is inside the also nested field documents
.
I'd like to retrieve the paginated list of concepts
buckets (built using a terms
aggregation).
I managed to retrieve the list without any problem, but I can't manage to paginate this list using size
and from
within a bucket_sort
:
{
'aggs': {
'all_datas': {
'aggs': {
'concepts': {
'aggs': {
'pagination': {
'bucket_sort': {
'from': <offset>,
'size': <limit>
}
}
},
'terms': {
'field': 'documents.datas.thesaurus.concept_code.keyword',
'show_term_doc_count_error': true
}
}
},
'nested': {
'path': 'documents.datas'
}
}
}
}
Any idea why it is not working ?