摘要: package org.springframework.util; IdGenerator、AlternativeJdkIdGenerator、JdkIdGenerator、SimpleIdGenerator PathMatcher、AntPathMatcher Assert AutoPopulat 阅读全文
posted @ 2021-10-07 15:12 icodegarden 阅读(50) 评论(0) 推荐(0) 编辑
  2022年9月15日
摘要: 场景:已投入使用的index由于前期没有考虑到数据规模,需要能够以lifecycle进行管理 例:已有index 名称exchange_record,属于业务日志类,对近期的数据可能需要修改,长期的只读少读甚至不读,数据量日增迅速,长期单index不合适 步骤: #创建名称为exchange_rec 阅读全文
posted @ 2022-09-15 09:49 icodegarden 阅读(87) 评论(0) 推荐(0) 编辑
  2021年11月16日
摘要: 数据模型 ZooKeeper的namespace每个节点都可以有与其关联的数据以及子节点。到节点的路径始终表示为规范的、绝对的、斜杠分隔的路径;没有相对路径。任何unicode字符都可以在受以下约束的路径中使用: null character (\u0000) 不能使用. 不能使用的characte 阅读全文
posted @ 2021-11-16 11:14 icodegarden 阅读(265) 评论(0) 推荐(0) 编辑
  2021年11月15日
摘要: 先来看官方对什么是zookeeper的描述: ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, an 阅读全文
posted @ 2021-11-15 15:53 icodegarden 阅读(90) 评论(0) 推荐(0) 编辑
  2021年11月11日
摘要: 本文档主要介绍分词器,如何使用内置分词器、自定义分词器。 Concepts 分词器通常有几部分组成: 字符过滤器:可以有0-N个。例如字符转换等操作。 分词执行器:只有有1个。例如把 "Quick brown fox!" 分词为[Quick, brown, fox!] 。 分词过滤器:可以有0-N个 阅读全文
posted @ 2021-11-11 10:28 icodegarden 阅读(33) 评论(0) 推荐(0) 编辑
  2021年11月9日
摘要: 核心search Search GET /<target>/_search GET /_search POST /<target>/_search POST /_search path参数: <target>(Optional, string) 逗号分割的 data streams, indices 阅读全文
posted @ 2021-11-09 16:19 icodegarden 阅读(248) 评论(0) 推荐(0) 编辑
  2021年11月8日
摘要: Document APIs Index 向index、data stream新增文档。如果目标是index且文档ID已存在,则覆盖。 PUT /<target>/_doc/<_id> POST /<target>/_doc/ PUT /<target>/_create/<_id> 当文档不存在时起作 阅读全文
posted @ 2021-11-08 11:02 icodegarden 阅读(138) 评论(0) 推荐(0) 编辑
  2021年11月4日
摘要: Ingest pipelines 允许对数据在索引之前进行转换,例如过滤、转换字段等。 前置要求: 集群中至少有1个以上节点的角色是 ingest ,在 Elasticsearch Node节点角色 章节中我们说到,如果ingest的工作量大,建议使用专用ingest节点。 如果ES开启了安全管理, 阅读全文
posted @ 2021-11-04 14:12 icodegarden 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Term level queries term查询不会对输入进行分词。 Exists 过滤哪些字段 not exists 的文档。 对于not exists的定义: 字段source是null或[]。 字段的index:false。 字段长度大于ignore_above 。 字段值格式错误,mapp 阅读全文
posted @ 2021-11-04 10:09 icodegarden 阅读(90) 评论(0) 推荐(0) 编辑
  2021年11月3日
摘要: Join queries 由于join query有一定的开销,当设置 search.allow_expensive_queries false时不会工作。 Nested 对nested类型的查询 直接看例子: 创建index mapping PUT /drivers { "mappings": { 阅读全文
posted @ 2021-11-03 15:38 icodegarden 阅读(114) 评论(0) 推荐(0) 编辑
摘要: Full text queries 全文搜索 Intervals 允许对匹配项的顺序和接近度进行细粒度控制。 Intervals Match 标准的全文搜索方式 GET /_search { "query": { "match": { "message": { "query": "this is a 阅读全文
posted @ 2021-11-03 15:28 icodegarden 阅读(49) 评论(0) 推荐(0) 编辑