title: ElasticSearch: Using match_phrase for all fields
body: <p>As a user of ElasticSearch 5, I have been using something like this to search for a given phrase in all fields:</p>
  
  <pre><code>GET /my_index/_search
  {
    "query": {
      "match_phrase": {
        "_all": "this is a phrase"
      }
    }
  }
  </code></pre>
  
  <p>Now, the _all field is going away, and match_phrase does not seem to work like query_string, where you can simply use something like this to run a search for all fields:</p>
  
  <pre><code>"query": {
    "query_string": {
      "query": "word"
    }
  }
  </code></pre>
  
  <p>What is the alternative for a exact phrase search for all fields without using the _all field from version 6.0?</p>
  
  <p>I have many fields per document so specifying all of them in the query is not really a solution for me.</p>