How to change the value of a filed in existed index?

Hi ES folks,

ES: 5.5.x

Is there a way can change the value of a field in the existed index rather than to reindex?

eg:

dc: 798
=>dc:cn

You can reindex the full document or use the update API.

Is that what you are looking for?

hi @dadoonet,

With update API, so need to reindex, isn't it?

Thanks

Update API does a GET old doc, merge with your update request and reindex the doc.

One of the reason I rarely use update API.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.