title: elastic search latency of index/update
body: <p>I have the 3 steps transaction as the following:</p>
  
  <pre><code>(1)Insert User basic info(id,name).
  (2)Search the User Id. 
  (3)If found the user,then update the record with user behavior info.
  </code></pre>
  
  <p>So I used elasticSearch.index() API to insert the user id and name, then  elasticSearch.search() API to query it, if found, I will update the record via elasticSearch.update() API. But the ES latency cause the search() API got nothing even though the data already was indexed. 
  So any ideas about fixing this please, thanks! </p>