【发布时间】:2021-09-22 15:46:01
【问题描述】:
我正在探索pgsync 为某些表添加弹性搜索支持,但是,我希望能够将所有文本字段复制到一个“全部”字段。 Elastic 以映射到组字段的形式对此提供支持,使用 copy-to,请参阅 here
像这样:
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"
}
}
}
}
如何在 PGSync schema.json 中实现这个组字段?
【问题讨论】:
标签: elasticsearch mapping schema pgsync