title: Kibana query for sentence (words with specific order) with 4 digit number
body: <p>I am pretty new to Elasticsearch and want to find below sentence in <code>message</code> field </p>
  
  <blockquote>
    <p>completed in ???? ms</p>
  </blockquote>
  
  <p>where ???? are numbers</p>
  
  <p>I have this at the moment</p>
  
  <pre><code>{
    "query": {
      "query_string": {
        "analyze_wildcard": true,
        "default_field": "*",
        "query": "(message:completed) AND (message:in) AND (message:/[0-9]{4}/) AND (message:ms)"
      }
    }
  }
  </code></pre>
  
  <p>But the problem is result also contains messages like this  which I am not interested in
  <a href="https://i.stack.imgur.com/YqE61.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YqE61.png" alt="enter image description here"></a></p>
  
  <p>How can I specify order of matching words? </p>
  
  <p>Thanks in advance </p>
  
  <p>I've also tried this with no luck:</p>
  
  <pre><code>{
    "query": {
      "regexp": {
        "message": {
          "value": "completed in [0-9]{4} ms"
        }
      }
    }
  }
  </code></pre>