2021年10月29日
摘要:
DSL 即 Domain Specific Language,是ES的JSON结构查询语法。 这个查询语法总体上包含2个部分: 叶子查询:对字段进行match、term、range等条件匹配 复合查询:复合查询包装其他叶子查询或复合查询 另外要注意在ES中有些查询的开销是比较大的: 需要进行线性扫描
阅读全文
posted @ 2021-10-29 10:52
icodegarden
阅读(107)
推荐(0)
2021年10月28日
摘要:
Search your data 章节主要介绍ES的整体性search的设计,对具体的语法、API如何则需要参考相关章节 Collapse search results 对查询结果进行collapse,可以理解为去重、分组等行为 假设index中有如下文档(为了方便以行表示): user.id me
阅读全文
posted @ 2021-10-28 11:12
icodegarden
阅读(558)
推荐(0)
2021年10月27日
摘要:
data stream的背后可以认为是一组自动创建的index。 数据流允许跨多个index仅追加时间序列数据,同时为请求提供单个index的命名(别名)。数据流非常适合于日志、事件、度量和其他连续生成的数据。 可以直接向数据流提交索引和搜索请求。流自动将请求路由到存储流数据的备份索引。您可以使用索
阅读全文
posted @ 2021-10-27 17:21
icodegarden
阅读(803)
推荐(0)
摘要:
Index templates 有2种: component templates 可重用的构建块,用于配置settings, mappings, and aliases。虽然可以使用组件模板构造索引模板,但它们不会直接应用于一组索引。 Index templates 索引模板可以包含componen
阅读全文
posted @ 2021-10-27 16:33
icodegarden
阅读(620)
推荐(0)
摘要:
Field data types 字段类型 Field data types Binary 接受一个Base64后的字符串,且不能包含\n符,该字段默认不会存储,也不能用于搜索。 PUT my-index-000001 { "mappings": { "properties": { "name":
阅读全文
posted @ 2021-10-27 09:14
icodegarden
阅读(427)
推荐(0)
2021年10月22日
摘要:
Dynamic mapping 动态mapping Dynamic mapping Elasticsearch支持自动index和字段 PUT data/_doc/1 { "count": 5 } 将自动创建data索引(若不存在),自动创建count字段映射 当Elasticsearch在文档中检
阅读全文
posted @ 2021-10-22 14:51
icodegarden
阅读(163)
推荐(0)
2021年10月21日
摘要:
Index配置 https://www.elastic.co/guide/en/elasticsearch/reference/7.15/index-modules.html#index-modules-settings static static的配置只能在 closed index 时才能修改。
阅读全文
posted @ 2021-10-21 17:22
icodegarden
阅读(1013)
推荐(0)
摘要:
https://www.elastic.co/guide/en/elasticsearch/reference/7.15/modules-node.html 默认情况下,集群中的每个节点都可以处理HTTP和Transport。Transport专门用于节点之间的通信;REST客户端使用HTTP层。
阅读全文
posted @ 2021-10-21 13:33
icodegarden
阅读(301)
推荐(0)
摘要:
LinkedCaseInsensitiveMap LinkedCaseInsensitiveMap<V> implements Map<String, V>, Serializable, Cloneable key忽略大小写的LinkedMap,不支持null作为key private final
阅读全文
posted @ 2021-10-21 10:12
icodegarden
阅读(436)
推荐(0)
摘要:
FileSystemUtils #public static boolean deleteRecursively(@Nullable File root) 递归删除,不会抛出异常 #public static boolean deleteRecursively(@Nullable Path root
阅读全文
posted @ 2021-10-21 09:41
icodegarden
阅读(116)
推荐(0)