简体   繁体   中英

How does elasticsearch reindexing behave when data keeps being written to the source index?

I want to use the elasticsearch reindex api to reindex an index on prod.

What is the behaviour when I keep writing to the source index? Will the reindexing task keep reindexing as long as I still write to it?

The reindex process will reindex only the documents that exist in the source index at the time when the reindex request was made.

Any document created or updated after the reindex request was made will not be indexed in the destination index, you will need to run another reindex to get these documents.

So, if you keep writing to the index, you will need to keep doing reindexes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM