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":{<!-- -->
}
}
}