title: C# Nest Elastic Search Wildcard Query - No Results Returned
body: <p>I'm trying to set up a query in C# using a wildcard. I can get the correct data returned using <code>MultiMatch</code> but have not had success with wildcard. Here is what I have so far:</p>
  
  <pre><code>public async Task&lt;IEnumerable&lt;SearchResultModel&gt;&gt; Search(string query)
       var queryResults = await elasticApp.SearchAsync&lt;dynamic&gt;(s =&gt; s
          .From(0)
          .Take(10)
          .Index(activeIndices)
          .Type(dataTypes)
          .Query(q =&gt; q
              .Bool(b =&gt; b
                  .Should(m =&gt; m
                      .Wildcard(w =&gt; w
                          .Field("name")
                              .Value(w + "*")                            
                       )
                   )
               )
           )
  </code></pre>
  
  <p>So as for the function parameter <code>query</code> when using <code>MultiMatch</code>, you would do <code>.Query(query)</code> at the end, but when I try to put that in using Wildcard I get syntax errors. And according to the NEST ES docs it seems that you do not use <code>.Query</code> at the end.</p>
  
  <p>Currently an empty array is returned.</p>
  
  <p>Any insight on this would be appreciated as I am new to using Nest and C#.</p>