![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ES
amadeus _liu
这个作者很懒,什么都没留下…
展开
-
ES: Must与Should 一起用
一定要注意,否则会出逻辑错误Must: andShould or public Map<String,Float> queryAllUsersDailyByPage(String startDate,String endDate) { //当前用户的id String userId = UserUtils.getUserId(); Date date1=null; Date date2=null;原创 2020-09-25 10:19:34 · 350 阅读 · 0 评论 -
ES: 分组聚合查询
{ "query": { "exists": { "field": "workCostTime" } }, "size": 0, "aggs": { "user_id": { "terms": { "field": "createUserId" }, "aggs": { "sum_workTime": { "sum": { "field": "wo原创 2020-09-22 17:11:36 · 1857 阅读 · 0 评论 -
ES: IK分词
1.对类型为keyword(原String)的数据不会进行全文检索2.对类型为 text的数据,创建 mappings时 可选择 standard 分词器或IK分词器,只有选择了IK分词器的,中文才会按照词进行查询。原创 2020-09-09 21:46:06 · 358 阅读 · 0 评论 -
ES: java.net.BindException: Cannot assign requested address: bind
Ip地址配置错误或端口被占用原创 2020-09-09 13:02:29 · 750 阅读 · 0 评论 -
ES: 7.3集群配置(windows)
# ======================== Elasticsearch Configuration =========================## NOTE: Elasticsearch comes with reasonable defaults for most settings.# Before you set out to tweak and tune the configuration, make sure you# understand what原创 2020-09-08 22:59:24 · 315 阅读 · 0 评论 -
ES: IK分词器
1.安装 IK插件2. http://localhost:9200/_analyze {"analyzer" : "ik_max_word",“text” : “代码生成工具民主党”}原创 2020-09-08 09:31:09 · 70 阅读 · 0 评论