mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 21:18:31 +00:00
Today we pull doc stats from an index reader which might not reflect reality. IndexWriter might have merged all deletes away but due to a missing refresh the stats are completely off. This change pulls doc stats from the IndexWriter directly instead of relying on refreshes to run regularly. Note: Buffered deletes are still not visible until the segments are flushed to disk.