es
lelehouse
这个作者很懒,什么都没留下…
展开
-
elastic search
we have a field named date in an index which format is “YYYYMMHH”, how can I make it be recognize by ES as a date so that we can search by date?https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-date-format.html原创 2021-04-19 16:32:56 · 136 阅读 · 0 评论 -
ES实现group by为什么你还报错
GET /_search{ "aggs" : { "products" : { "terms" : { "field" : "product" } } }}如果你的字段product对应是string,会发现报错无法正确查询。If you try to sort, aggregate, or access values from a script on a text fi原创 2021-04-08 10:52:48 · 368 阅读 · 0 评论