文档首页> 云搜索服务 CSS> 常见问题> 开源搜索引擎咨询> Elasticsearch 7.x集群如何在index下创建type?
更新时间:2024-04-18 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. ”
分享:

开源搜索引擎咨询 所有常见问题

more