title: Multiple ranges in Query for elasticsearch
body: <p>I would like make query like <code>where price &gt; 555 and price &lt; 5555 and quantity &gt; 33</code></p>
  
  <p>I have query like:</p>
  
  <pre><code>$query = array(
              'query' =&gt; queryFilters($filters),
              'sort' =&gt; array($sortOrder[0] =&gt; $sortOrder[1], 'updated_at' =&gt; 'desc'),
              'from' =&gt; ($page - 1) * $pageSize,
              'size' =&gt; $pageSize,
          );
  </code></pre>
  
  <p>Now, lets assume my filters is like:</p>
  
  <pre><code>filter[price_from]=555&amp;filter[price_to]=5555&amp;filter[quantity_from]=33
  </code></pre>
  
  <p>What should be result of <code>queryFilters($filters)</code> to make it work?
  I tried filtered query from <a href="https://www.elastic.co/guide/en/elasticsearch/guide/current/combining-filters.html" rel="nofollow">this doc</a> but result was like or (used <code>array of ranges: 0=&gt;range[...], 1=&gt;range[...], 2=&gt;range[...])</code> but result was like or query. Any suggestions?
  I will have <code>query=&gt;constant_score=&gt;filter=&gt;exists=&gt;field[items]</code> and [missing](same structure) in result of <code>queryFilters($filters)</code> also. Using <code>range</code> just for one <code>(price gte, lte)</code> works good, but cant use it for multiple fields <code>(price, quantity)</code>.</p>