elasticsearch index and store
来源:互联网 发布:java math.random用法 编辑:程序博客网 时间:2024/05/29 18:44
es默认大多数及常用数据字段类型就是索引的,这也是es职责之所在,但是有时会有部分字段只是做存储,不做检索,这也会提高es性能。将index设置为false,则不索引,即不能对其检索。
属性store默认false,当某个数据字段很大,我们可以指定其它字段store为true,这样就不用从_source中取数据。 store 的意思是,是否在 _source 之外在独立存储一份,这里要说一下 _source 这是源文档,当你索引数据的时候, elasticsearch 会保存一份源文档到 _source ,如果文档的某一字段设置了 store 为 true,这时候会在 _source 存储之外再为这个字段独立进行存储,这么做的目的主要是针对内容比较多的字段,放到 _source 返回的话,因为_source 是把所有字段保存为一份文档,命中后读取只需要一次IO,包含内容特别多的字段会很占带宽影响性能,通常我们也不需要完整的内容返回(可能只关心摘要),这时候就没必要放到 _source 里一起返回了(当然也可以在查询时指定返回字段)。
阅读全文
0 0
- elasticsearch index and store
- elasticsearch 为“非查询字段”不建索引 index store
- 图解Elasticsearch中的_source、_all、store和index属性
- 图解Elasticsearch中的_source、_all、store和index属性
- Elasticsearch中的_source、_all、store和index属性
- Elasticsearch为“非查询字段”不建索引index store
- 图解Elasticsearch中的_source、_all、store和index属性
- 图解Elasticsearch中的_source、_all、store和index属性
- 图解Elasticsearch中的_source、_all、store和index属性
- 图解Elasticsearch中的_source、_all、store和index属性
- 图解Elasticsearch中的_source、_all、store和index属性
- Elasticsearch store属性理解
- elasticsearch index type
- elasticsearch之index模块
- ElasticSearch Index API
- elasticsearch查看所有index
- elasticsearch mapping index 说明
- elasticsearch 操作 index 命令
- Unity3D中DateTime时间的各种字符串格式的转换
- 初学HTML
- jsp 制作一个登录注册表单
- 背包问题之01背包
- markdown入门指南
- elasticsearch index and store
- 在网页下载特定的table的对应处理
- css和dos
- (算法分析Week9)Remove Duplicates from Sorted Array[Easy]
- java 之 Properties集合
- 园
- jsp 写一个cookie
- 理解大型分布式网站必须知道这些概念
- docker hub切换国内镜像