title: Elasticsearch UpdateByQuery index refresh issue
body: <p>I am working with Elasticsearch(ES) 5 and NEST 5 on C#</p>
  
  <p>I have a workflow implemented using ES. Simplifiying the workflow has 2 steps.</p>
  
  <p>Step 1: I generate the recipients for a message usin an UpdateByQuery statement base on some criteria.</p>
  
  <p>Step 2: I query all recipients generated on step 1 to actualy deliver the message.</p>
  
  <p>The problem I am facing is that some times the first step run so fast that when the second step runs the index is not refresh yet, so no recipient is found.</p>
  
  <p>I tried setting "WaitForCompletion(true)" (default on Nest) but I get the same result. Also I notice that UpdateByQuery does not support refresh=wait_for so not sure how to do this.</p>
  
  <p>My update by query looks like this:</p>
  
  <pre><code>query
  .Index(allIndexesStr)
  
  // Exclude all contact in this list
  .Query(q =&gt;
      ...
  )
  .WaitForCompletion(true)
  // Update script
  .Script(script =&gt; script
      .Inline(scriptStr)
      .Params(p =&gt;
          ...
      )
  )
  .Routing(customerSiteId.ToString());
  </code></pre>
  
  <p>My search look like this:</p>
  
  <pre><code>search
  .Index(allIndexesStr)
  .Size(size)
  .Scroll(timeout)
  .Query(q =&gt;
      ...
  )
  .Sort(sort =&gt; sort
      .Ascending("contactGuid.keyword")
  )
  .Routing(customerSiteId.ToString());
  </code></pre>
  
  <p>So I am wondering how is the propper way to solve this issue using ES...</p>
  
  <p>Any help will be appreciate</p>