It would be great to have min_doc_count to date_range aggregations.
"aggs": {
"age_range": {
"date_range": {
"field": "birthdate",
"ranges": [
{ "from": "now-14y/d", "to": "now/d", "key": "0-14" },
{ "from": "now-18y/d", "to": "now-14y/d", "key": "14-18" },
{ "from": "now-25y/d", "to": "now-18y/d", "key": "18-25" },
{ "from": "now-35y/d", "to": "now-25y/d", "key": "25-35" },
{ "from": "now-45y/d", "to": "now-35y/d", "key": "35-45" },
{ "from": "now-55y/d", "to": "now-45y/d", "key": "45-55" },
{ "to": "now-55y/d", "key": "55-99" }
] },
"aggs": {
"gender": {
"terms": {
"field": "gender"
} } } } }
Is there any plan to add this?
Thank you