我正试图使用下面的代码更新索引模式的timeField,但我得到了一个文档丢失异常。我已经从索引模式URL中获取了正确的id。有人能指导我如何更新吗。
POST /{_index}/_update/{_id}/
{ "doc":
{ "index-pattern":
{ "timeFieldName" : "{NEW_FIELD_NAME}" }
}
}
确保在id前面加上index-pattern:<id>
,如下所示:
POST /{_index}/_update/index-pattern:{_id}/
{ "doc":
{ "index-pattern":
{ "timeFieldName" : "{NEW_FIELD_NAME}" }
}
}