title: How to define a query timeout for a spring data elastic search query?
body: <p>My question is more in general assuming i have a simple query like this to elastic search</p>
  
  <pre><code>Page&lt;MyEntity&gt; findAll(Pageable pageable);
  </code></pre>
  
  <p>I want to be able to set a timeout for this query for instance so it doesn't hang forever, although I read the documentation I didn't see anything clear about how to do it.</p>
  
  <p>Is the any way to do it? a way to set a timeout for Spring-data-elasticsearch queries that I can make sure that nothing will get for too long?</p>