是时候用 ES 拯救发际线啦

_default_ mapping

Elasticsearch | 作者 luohuanfeng | 发布于2017年12月27日 | 阅读数:2313

看到官方文档写的6.0以后将移除这个mapping type .

那以后用template匹配多个index时,该如何自动创建对应的mapping type?

另外 没能理解文档中的这句话是什么意思
"The default mapping, which will be used as the base mapping for a new mapping type, can be customised by adding a mapping type with the name _default_ to an index"
已邀请:

rockybean - Elastic Certified Engineer, ElasticStack Fans,公众号:ElasticTalk

赞同来自:

6.x 以后一个 index 只能用一个 type 了,所以建议使用的时候 type 都命名为同一个,比如 doc

要回复问题请先登录注册