【发布时间】:2021-01-06 07:17:28
【问题描述】:
我想知道copy_to的目标字段类型是否必须是text类型。 我在官方文档中没有找到描述。 https://www.elastic.co/guide/en/elasticsearch/reference/current/copy-to.html
也就是说,full_name的类型可以是其他类型而不是文本吗?谢谢。
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"
}
}
}
}
【问题讨论】:
标签: elasticsearch