Elasticsearch(ES)(版本7.x)创建索引报错:Faile to parse mapping [_doc] Root mapping definition has unsupported
Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters:
·
Elasticsearch(ES)(版本7.x)创建索引报错:
因es7.0版本之后不再需要type doc,把上面语句中的doc删掉,再运行就可以创建索引了。
如果还需要type doc则需要增加include_type_name=true即可解决。
示例:
PUT /project_evaluate?include_type_name=true
"mappings": {<!-- -->
"type": {<!-- -->
"properties":{<!-- -->
}
}
}
更多推荐
已为社区贡献2条内容
所有评论(0)