How to wait for reindexing in elasticsearch?
<p>I have an <code>ElasticSearch</code> with index <code>posts</code> setted up. I'm pushing new documents to it from time to time.</p>

<p>I want <code>ElasticSearch</code> to reply to my queries only when all documents are indexed. How can I do that?</p>