title: PHP Elasticsearch Query
body: <p>I am trying to build a small web application to demo elasticsearch's capabilities, but I am running into an issue with my query. My goal is to search a string of keywords over all indexes and fields.  What I currently have seems to only search <code>AttachmentBody</code>, as when I search for <code>BugID xyz</code> or <code>AttachmentTitle xyz</code> nothing is displayed.  I would greatly appreciate any help you may have to offer!</p>
  
  <pre><code>&lt;?php
  
  require_once 'es/esconnect.php';
  
  if (isset($_GET['q'])){
      $q = $_GET['q'];
      $query = $Client-&gt;search([
          'body' =&gt;[
              'query' =&gt;[
                  'bool' =&gt;[
                      'should' =&gt;[
                          'match' =&gt; ['BugID' =&gt; $q],
                          'match' =&gt; ['AttachmentTitle' =&gt; $q],
                          'match' =&gt; ['AttachmentBody' =&gt; $q]
                      ]
                  ]
              ]
          ]
      ]);
  
      if($query['hits']['total'] &gt;=1){
          $results = $query['hits']['hits'];
      }
  }
  
  ?&gt;
  </code></pre>
  
  <hr>
  
  <p>BugID: CSCzo56214</p>
  
  <p>AttachmentTitle: 15624_note_21844</p>
  
  <p>AttachmentBody: this is a note</p>
  
  <hr>
  
  <p>BugID: CSCzo56214</p>
  
  <p>AttachmentTitle: 15624_description_21846</p>
  
  <p>AttachmentBody: this is a description</p>
  
  <hr>
  
  <p>Working query:</p>
  
  <pre><code>    'body' =&gt;[
          'query' =&gt;[
              'bool' =&gt;[
                  'should' =&gt; array(
          array('match' =&gt; array('BugID' =&gt; $q)),
          array('match' =&gt; array('AttachmentTitle' =&gt; $q)),
          array('match' =&gt; array('AttachmentBody' =&gt; $q))
      )
  </code></pre>