![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
elasticsearch
Interstellar_
这个作者很懒,什么都没留下…
展开
-
Elasticsearch学习(一)索引
1. 创建index创建index的语法格式如下。首先要加入一些setting,关于setting的一些具体设置请看(https://blog.csdn.net/Interstellar_/article/details/81355589)。然后是映射mappings的一些设置,具体内容请看(https://blog.csdn.net/interstellar_/article/details...原创 2018-08-02 10:06:15 · 266 阅读 · 0 评论 -
Elasticsearch整理之settings的设置
//静态设置:只能在索引创建时或者在状态为 closed index(闭合的索引)上设置index.number_of_shards //主分片数,默认为5.只能在创建索引时设置,不能修改index.shard.check_on_startup //是否应在索引打开前检查分片是否损坏,当检查到分片损坏将禁止分片被打开 false //默认值 checksum //检查物理损坏...原创 2018-08-02 11:35:13 · 10398 阅读 · 0 评论 -
Elasticsearch学习(二)mapping
1. 创建mapping我们可以在创建index时设置mapping。每个mapping含有Meta-field(元数据类型)以及properties(字段的集合)。PUT index_name{ "mappings" : { "_doc" : { /* 这里面可以设置元数据类型,例如_source、_id...原创 2018-08-02 12:27:02 · 316 阅读 · 0 评论 -
Elasticsearch整理之Field datatype
一、Field datatype1. text类型ES的新版本不再支持string,而是将string分为text和keyword。text 数据类型被用来索引长文本,比如说电子邮件的主体部分或者一款产品的介绍。这些文本会被分析,在建立索引前会将这些文本进行分词,转化为词的组合,建立索引。允许 ES来检索这些词语。text 数据类型不能用来排序和聚合。2. keyword类型...翻译 2018-08-02 13:52:21 · 2080 阅读 · 0 评论 -
Elasticsearch整理之mapping的参数
目录一、Mapping的参数1. analyzer2. normalizer3. boost4. coerce5. copy_to6. doc_values7. dynamic8. enable9. fielddata10. format11. ignore_above12. ignore_malformed13. index14. in...翻译 2018-08-02 20:09:10 · 1081 阅读 · 0 评论 -
Elasticsearch整理之Meta-Fields
1. _index文档所属的索引。https://www.elastic.co/guide/en/elasticsearch/reference/6.3/mapping-source-field.html2. _id每个文档都有一个独一的id标识它,id可用于特定的查询 (term, terms, match, query_string, simple_query_string)....原创 2018-08-03 00:17:42 · 775 阅读 · 0 评论