ElasticSearch 7.x 默认不在支持指定索引类型
在elasticsearch7.x上执行:
put es_test
{
"settings":{
"number_of_shards" : 3,
"number_of_replicas" : 0
},
"mappings":{
"books":{
"properties":{
"title":{"type":"text"},
"name":{"type":"text","index":false},
"publish_date":{"type":"date","index":false},
"price":{"type":"double"},
"number":{
"type":"object",
"dynamic":true
}
}
}
}
}
执行结果则会出错:Root mapping definition has unsupported parameters
{
"error": {
"root_cause": [
{