简体   繁体   English

当数据不断写入源索引时,elasticsearch 重建索引的行为如何?

[英]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.我想使用 elasticsearch 重建索引 api 重建产品索引。

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.因此,如果您继续写入索引,您将需要继续进行重建索引。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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