特定の期間にdate_histogramを取得したいのですが、期間を制限する方法はありますか? extended_boundsパラメータを使用する必要がありますか?たとえば、「2016-08-01」と「2016-08-31」の間のdate_histogramを照会したいとします。間隔はdayです。私はこの表現で問い合わせる:弾性検索date_histogram extended_bounds
{
"aggs": {
"cf_loan": {
"date_histogram": {
"field": "createDate",
"interval": "day",
"format": "yyyy-MM-dd",
"min_doc_count": 0,
"extended_bounds": {
"min": "2016-08-01",
"max": "2016-08-31"
}
}
}
}
}
しかし、私は範囲内にないdate_histogramを取得します。