title: Fasten query elasticsearch
body: <p>I'm trying to do a query on elasticsearch but I'm suprise by the fact that the response is very slow.</p>
  
  <pre><code>request = {
              "query": {
                  "bool": {
                      "must": [{"match": {"user.id": self.id}}]
                  }
              },
              "sort": [
                  {"created_at": {"order": "asc"}}
              ]
          }
  </code></pre>
  
  <p>The query take three seconds and a half (3.5s) to have a response. I'm working in local so the problem can't come from a network issue.</p>
  
  <p>How can I improve the speed of my query knowing that the query hit an index containing 40 millions documents?</p>