title: search via a Term query using NEST client for elastic search
body: <p>I am having difficulty searching for documents by a specific term. Every time I do i get zero results. </p>
  
  <p>Here is a code example:</p>
  
  <pre class="lang-cs prettyprint-override"><code>var customers = new List&lt;SampleCustomer&gt;();
  customers.Add(new SampleCustomer(){id=1,firstname="John", surname="Smith", country = "UK", sex = "Male", age=30});
  customers.Add(new SampleCustomer(){id=2,firstname="Steve", surname="Jones",  country ="UK", sex = "Male", age=22});
  customers.Add(new SampleCustomer(){id=3,firstname="Kate", surname="Smith",  country ="UK", sex = "Female", age=50});
  customers.Add(new SampleCustomer(){id=4,firstname="Mark", surname="Jones",  country ="USA", sex = "Male", age=45});
  customers.Add(new SampleCustomer(){id=5,firstname="Emma", surname="Jonson",  country ="USA", sex = "Female", age=25});
  customers.Add(new SampleCustomer(){id=6,firstname="Tom", surname="Jones",  country ="France", sex = "Male", age=30});
  customers.Add(new SampleCustomer(){id=7,firstname="Liz", surname="Web",  country ="France", sex = "Female", age=45});
  
  foreach (var customer in customers)
  {
      _elasticClient.DeleteById("sample", "SampleCustomers",customer.id);
      _elasticClient.Index(customer, "sample", "SampleCustomers" , customer.id);
  }
  </code></pre>
  
  <p>using this index I can query the customers with the first name of smith using the query string filter </p>
  
  <pre class="lang-cs prettyprint-override"><code>var queryByQueryString = _elasticClient.Search&lt;SampleCustomer&gt;(s =&gt;
             s.From(0).Size(10).Type("SampleCustomers")
             .Query(q =&gt; q.QueryString(qs =&gt; qs.Query("Smith").OnField("surname"))));
  </code></pre>
  
  <p>but if I try search for customers using the term filer I get zero results</p>
  
  <pre class="lang-cs prettyprint-override"><code>var queryByTerm = _elasticClient.Search&lt;SampleCustomer&gt;(s =&gt;
              s.From(0).Size(10).Type("SampleCustomers")
              .Query(q =&gt; q.Term(p =&gt; p.surname, "Smith")));
  </code></pre>
  
  <p>I dont know what im doing wrong? In the example above I want to make sure that my query only returns results where the surname exactly equals "Smith" and that if someone had a double-barrelled surname such as "Smith Jones" they would not appear in the results.</p>