要不要再翻翻文档呢?

[已解决]es6.2.3 请问能否在一个index下面建立多个type,而多个type里面有不同的mapping?

Elasticsearch | 作者 Yu Tao | 发布于2018年06月07日 | 阅读数:9016

请问能否在一个index下面建立多个type,而多个type里面有不同的mapping?
比如:
type_A的mapping中是 1,2,3,4个字段
type_B的mapping中是5,6,7,8个字段

名称完全不一样,这样可以吗?
已邀请:

Yu Tao

赞同来自: laoyang360

官方回复:
Indices created in Elasticsearch 6.0.0 or later may only contain a single mapping type. Indices created in 5.x with multiple mapping types will continue to function as before in Elasticsearch 6.x. Mapping types will be completely removed in Elasticsearch 7.0.0.
 
6.0的版本不允许一个index下面有多个type
 
5.0的版本里面还允许
 
mapping types这个操作在7.0里面将被删除掉

要回复问题请先登录注册