根映射定义具有不受支持的参数
Root mapping definition has unsupported parameters
每当我尝试提供以下映射时,我都会收到错误消息。
"copy_to".
有什么需要做的吗
PUT myindex/mytype/_mapping
{
"mappings": {
"properties": {
"manufacturer": {
"type": "string",
"copy_to": "full_make_model_name"
},
"name": {
"type": "string",
"copy_to": "full_make_model_name"
},
"full_make_model_name": {
"type": "string",
"index": "analyzed"
}
}
}
}
尝试:
PUT myindex/_mapping/mytype
{
"properties": {
"manufacturer": {
"type": "string",
"copy_to": "full_make_model_name"
},
"name": {
"type": "string",
"copy_to": "full_make_model_name"
},
"full_make_model_name": {
"type": "string",
"index": "analyzed"
}
}
}
我的ES版本是7.2,我是这样解决的
"mappings":{
"properties":{
"article":{
"properties":{
"id":{"type": "long","store": true},
"title":{"type": "text","store": true,"index": true,"analyzer": "standard"},
"content":{"type": "text","store": true,"index": true,"analyzer": "standard"}
}
}
}
}
每当我尝试提供以下映射时,我都会收到错误消息。
"copy_to".
有什么需要做的吗PUT myindex/mytype/_mapping
{
"mappings": {
"properties": {
"manufacturer": {
"type": "string",
"copy_to": "full_make_model_name"
},
"name": {
"type": "string",
"copy_to": "full_make_model_name"
},
"full_make_model_name": {
"type": "string",
"index": "analyzed"
}
}
}
}
尝试:
PUT myindex/_mapping/mytype
{
"properties": {
"manufacturer": {
"type": "string",
"copy_to": "full_make_model_name"
},
"name": {
"type": "string",
"copy_to": "full_make_model_name"
},
"full_make_model_name": {
"type": "string",
"index": "analyzed"
}
}
}
我的ES版本是7.2,我是这样解决的
"mappings":{
"properties":{
"article":{
"properties":{
"id":{"type": "long","store": true},
"title":{"type": "text","store": true,"index": true,"analyzer": "standard"},
"content":{"type": "text","store": true,"index": true,"analyzer": "standard"}
}
}
}
}