elasticsearch - 如何将对象重新索引为文本?
问题描述
如何重新索引对象类型字段,例如:
{
"Foo": {
"properties": {
"ID": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"Name": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
}
}
对其文本表示:
{
"Foo": {
"type": "text",
"index": "false"
}
}
使用原始 reindex 我收到一个错误:Can't get text on a START_OBJECT at 1:141