Modify the documents while reindexing


(Abhishekh) #1

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?


(David Pilato) #2

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


(system) #3

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