文档首页> 云搜索服务 CSS> 用户指南(吉隆坡区域)> 常见问题> 功能使用相关> Elasticsearch 7.x集群如何在index下创建type?
更新时间:2023-06-20 GMT+08:00

Elasticsearch 7.x集群如何在index下创建type?

在Elasticsearch 7.x版本中,去掉了type概念,在7.x及以后的版本中,index都不再支持创建type。

若需要强制使用,可以在命令中添加“include_type_name=true”强制使用type类型。

PUT _template/urldialinfo_template?include_type_name=true

执行命令后,界面会有提示:

“#! Deprecation: [types removal] Specifying include_type_name in put index template requests is deprecated. The parameter will be removed in the next major version. ”