title: ElasticSearch NEST Search Multiple Types & All Fields
body: <p>Using ElasticSearch NEST, I am having trouble getting expected results back from my queries.  My index/type layout is as follows:</p>
  
  <ul>
  <li>theatres (index)
  
  <ul>
  <li>event (types)</li>
  <li>theatre</li>
  <li>promotion</li>
  <li>generic content</li>
  </ul></li>
  </ul>
  
  <p>Each of those types have their own fields, and I am using NEST's Index() method to index the data.  I can verify that it's being indexed properly by:</p>
  
  <ul>
  <li>Looking at <code>http://localhost:9200/theatres/_mapping</code></li>
  <li>Using the <a href="http://mobz.github.io/elasticsearch-head/" rel="noreferrer">Head</a> plugin to view data</li>
  </ul>
  
  <p>For reference, here is my client configuration:</p>
  
  <pre><code>// TODO: Put settings in config
  var node = new Uri("http://localhost:9200");
  var connSettings = new ConnectionSettings(node);
  connSettings.SetDefaultIndex("theatres");
  connSettings.ThrowOnElasticsearchServerExceptions();
  
  var client = new ElasticClient(connSettings);
  </code></pre>
  
  <p><strong>The Query</strong></p>
  
  <p>Now, for the query, I want to search <em>all</em> types and <em>all</em> fields within the index.  Using the Head plugin, I am able to generate the query and get the expected results: <img src="https://i.stack.imgur.com/aDSsh.png" alt="enter image description here"></p>
  
  <p>Using that query that it generated, I tried the following NEST query:</p>
  
  <pre><code>var query = "waukesha"; // This would be passed in
  
  var resp = client.Search&lt;dynamic&gt;(s =&gt; s
     .From(0)
     .Take(10)
     .Query(qry =&gt; qry
         .Bool(b =&gt; b
         .Must(m =&gt; m
             .QueryString(qs =&gt; qs
                 .DefaultField("_all")
                 .Query(query))))));
  </code></pre>
  
  <p>However, this gives me a different result.  Is NEST doing something behind the scenes that I'm not aware of? Or is this not supported?</p>