online group by date_histogram(field='insert_Yme','interval'='1.5h','format'='yyyy-‐MM') l Insert_Yme 按照 1.5h ⼀一个区段进⾏行聚合.format是key的格式 l select online from online group by date_range(field='insert_Yme','format'='yyyy-‐MM-‐ dd' ,'2014-‐08-‐18','2014-‐08-‐17','now-‐8d','now-‐7d','now-‐6d','now') l 支持now关键字,不解释了.
group by gender l 非二维表.需要看文档 l h)p://www.elasYcsearch.org/guide/en/elasYcsearch/reference/current/ search-‐aggregaYons-‐metrics-‐top-‐hits-‐aggregaYon.html