I wonder that if the type of destination field of copy_to must be text type. I have not find the description in the official document. https://www.elastic.co/guide/en/elasticsearch/reference/current/copy-to.html
In other words,can the full_name 's type be other type(such as keyword,search-as-you-type ...) but not text? Thanks.
Related question on StackOverflow :
PUT my-index-000001
{
"mappings": {
"properties": {
"first_name": {
"type": "text",
"copy_to": "full_name"
},
"last_name": {
"type": "text",
"copy_to": "full_name"
},
"full_name": {
"type": "text"
}
}
}
}