0
具有指數下面的例子類型:彈性搜索數據彙總
{
"_index": "aggs_20141028",
"_type": "aggobj",
"_id": "4aNpd7zlR5eTdA7o2I898A",
"_version": 1,
"_score": 1,
"_source": {
"UserId": 4,
"Created": "2014-10-28T09:40:22.0652362+02:00",
"Path": "Path_0",
"IntProp1": 1,
"IntProp2": 87,
"IntProp3": 903,
"BoolProp1": false,
"BoolProp2": true,
"BoolProp3": false,
"StringProp1": "StringProp_6",
"StringProp2": "StringProp_6",
"StringProp3": "StringProp_3"
}
}
如何在它彙總數據,以下使用情況?
- 骨料BoolProp(計數)由用戶組,TIMEPERIOD(例如天,月),在開始日期濾波器
- 骨料BoolProp(計數)組TIMEPERIOD(例如天,月),在開始日期過濾器,用戶id
- 骨料BoolProp(計數)由contentproperty基,TIMEPERIOD(例如天,月),在開始日期濾波器
- 骨料IntProp(總和)通過路徑,TIMEPERIOD基,上STARTDATE濾波器
原始ES文檔是曲ite很難理解... http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-metrics-sum-aggregation.html