While indexing our product catalog, we set the RefreshInterval to -1, as long as we are bulk updating the index.
When we are done, we set it back to 1 second.
After that, I would like to poll the index to see when it is done "refreshing" the index, so that I can safely swap the alias from the old index to the new index, without any issues.
My only concern would be, what if it takes a long time to complete the refresh? The call might time out, and then I'd have to trigger a new refresh, which might just make it worse?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.