摘要: https://blog.csdn.net/zhanglh046/article/details/78536143 https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-docvalue-fiel 阅读全文
posted @ 2018-10-09 11:24 月月小鸟 阅读(971) 评论(0) 推荐(0) 编辑
摘要: 官网:https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-docvalue-fields.html 最近工程中用到要扫描所有的document下的nested的数据,大神给写了一个ES脚本,随笔 阅读全文
posted @ 2018-10-09 10:57 月月小鸟 阅读(3453) 评论(0) 推荐(0) 编辑
摘要: 数据量:document 大概有2KW+,每个document下有一个nest数组结构,数据量最多能达到上百个,每个数组的元素中有个expire_time,搜索时会通过expire_time进行过滤操作 搜索时:es的时间过滤{"from": {{from}}{{^from}}0{{/from}}, 阅读全文
posted @ 2018-10-09 10:36 月月小鸟 阅读(9609) 评论(0) 推荐(0) 编辑