I am using the new (beta)-feature called "composite-aggrgeations" in elasticsearch. The main purpose for me is the added scrolling-functionality of this aggregation. I am actually using it on one source only.
Now I have found that using the "min_doc_count"-parameter on a terms-aggregation will produce the error:
failed to parse field [sources] ... unknown field [min_doc_count]
When I remove the composite feature from the aggregation everything works fine. (the terms-aggregation including the min-doc-count). It only fails when it is declared as a source in a composite-aggregation.
Is this a bug? Or maybe I did not fully understand composite-aggregations?
Thanks for any feedback!
Edit:
{
"aggs" : {
"my_buckets": {
"composite" : {
"sources" : [
{ "product": { "terms" : { "field": "product", "min_doc_count": 2 } } }
]
}
}
}
}