【发布时间】:2020-02-26 21:29:32
【问题描述】:
我需要更新索引到 Elasticsearch 的文档中的一个字段。我该怎么做。
"redcash_sale": {
"type": "object"
}
将上面的字段更新到下面(使启用为 false):-
sale_property_development_j/_mapping/property
{
"properties": {
"redcash_sale": {
"type": "object",
"enabled": false
}
}
}
当我再次映射到 elasticsearch 时引发错误:-
错误
{
"error": {
"root_cause": [
{
"type": "mapper_exception",
"reason": "Can't update attribute for type [_doc.redcash_sale.enabled] in index mapping"
}
],
"type": "mapper_exception",
"reason": "Can't update attribute for type [_doc.redcash_sale.enabled] in index mapping"
},
"status": 500
}
提前致谢!
【问题讨论】:
标签: elasticsearch