Modify the documents while reindexing

Hi,
Can we modify the documents while reindexing ? Example: Suppose a document at source index contains a field "user" = "gmail" and while reindexing from source to destination shall we change the "user" = "facebook" at destination index? or after reindex we have to update by separate update command?

You can provide a script while reindexing.
See https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html

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