Hello Sir,
We are finding a issue for search after bulk update as the data is not getting refresh immediately so search fails to get the latest data so we thought of using bulk update with refresh but since we have to refresh documents of many shards its taking long time. We tried with get api its getting latest document since we cant pass any query we cant use it as well.
Is bulk update with refresh is good or bad. Is there Any other way.
The reason refreshes by default are done periodically is because they are expensive operations. Forcing a refresh after every bulk request will therefore negatively affect your indexing performance. The added load on the system could potentially also affect search performance. This is a fundamental part of how Elasticsearch works, so I am not aware of any way around making this trade-off between performance and performance immediate availability of data for searching.
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.