<p dir="auto">Have a use case where users can upload documents from a site and the site will refresh the UI immediately to show the new documents, often faster than the default refresh interval of 1s.  Currently there are a few options:</p>
<ul dir="auto">
<li>Decrease the refresh interval to &lt; 1s (not recommended given that refresh is expensive and can affect indexing performance if set too low)</li>
<li>Make an explicit/immediate refresh call after the upload action</li>
<li>Delay the update of the view in the UI to allow the new docs to be refreshed in the index.</li>
</ul>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mikemccand/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mikemccand">@mikemccand</a> noted that there is something called ControlledRealTimeReopenThread in Lucene that handles exactly this use case (but not currently exposed in ES), where most search requests don't have to see the latest change but then one specific search request does.</p>
<p dir="auto">Feature request:  Provide an option to the index operation that will wait until the next scheduled refresh occurs before returning a response.  After the response is returned, all documents indexed in that operation should be visible for search.</p>