I am getting error whenever i tried to give the below mappings.
Is there anything you need to do for "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"
}
}
}
}
Try:
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"
}
}
}