Elasticsearch how can I do online re-index without missing newly documents after scan & scoll? -


i don't want elasticsearch taken offline while re-indexing (using scan , scoll api), strategy re-indexing online , in end check if number of documents in new index not less old index. note, did flush after re-index document counts correct.

however, re-indexing, new documents added old index. in end of re-index, documents missing (which aren't missing, added after start of re-indexing).

i don't dare alias new index official index name @ start of re-index. because, in case there documents missing, newly added documents during re-index in new index. want effect if new index fails, can delete without affecting old index.

this won't problem if either diff 2 indices or if retrieve documents added after checkpoint time.

i saw post @ diff indices in elasticsearch asks how diff 2 indices no answers that.


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -