title: Elastic-search not returning documents using Nest
body: <p>I pretty new to <code>ElasticSearch</code>.</p>
  
  <p>I'm unable to search using <code>ElasticSearch</code> i tried couple of ways, Nothing seems to be working for me.</p>
  
  <blockquote>
    <p>If i use sense chrome toolkit <a href="https://chrome.google.com/webstore/detail/sense-beta/lhjgkmllcaadmopgmanpapmpjgmfcfig?hl=en" rel="nofollow noreferrer">Sense extension for chrome</a> and query this <code>GET /employee/_search?q=FirstName="Eldho"</code> It is working Fine. </p>
  </blockquote>
  
  <p><em>I have already looked out this <a href="https://stackoverflow.com/questions/15887276/elasticsearch-nest-client-not-returning-results">answer</a>, doesn't work for me either.</em></p>
  
  <p><strong>Unable to search using Nest</strong></p>
  
  <pre><code>    protected ElasticClient Client;
      IndexName index = "employee";
  
      public ElasticSearchRepository(Uri elasticServerUri)
      {
          var connection = new ConnectionSettings(elasticServerUri).DefaultIndex("employee");
          this.Client = new ElasticClient(connection);
  
      }
  
      //This is how i create Index
      public void CreateIndex()
      {
  
          var settings = new IndexSettings();
          settings.NumberOfReplicas = 1;
          settings.NumberOfShards = 1;
  
          var indexstate = new IndexState();
          indexstate.Settings = settings;
  
  
          Client.CreateIndex(index, g =&gt; g.Index(index)
                .InitializeUsing(indexstate)
                .Mappings(j =&gt; j.Map&lt;Employee&gt;(h =&gt; h.AutoMap(1))));
  
      }
  
      public List&lt;Employee&gt; Search(string search)
      {
          //All 3 searches are not wokring for me
          var response = Client.Search&lt;Employee&gt;(s =&gt; s
                               .AllIndices()
                               .AllTypes()
                               .From(0)
                               .Size(10)
                               .Query(q =&gt;q
                               .Term(t =&gt; t.FirstName, "Eldho")));
  
          var result = Client.Search&lt;Employee&gt;(h =&gt; h
                              .Query(q =&gt; q
                                  .Match(m =&gt; m.Field("FirstName").Query(search))));
  
          var result2 = Client.Search&lt;Employee&gt;(h =&gt; h
                       .Type("employee")
                       .Query(k =&gt; k
                       .Term(g =&gt; g.FirstName, "Eldho")));
  
          return result.Documents.ToList();
      }
  </code></pre>
  
  <p>Please let me know what i'm doing wrong.</p>