title: ElasticSearch NEST return specific fields
body: <p>I'm trying to write a query that will give me back only one of the fields. Right now I'm storing the filePath of a file and the contents of a file and in my search I want to search against the contents, but only return the filePath.</p>
  
  <p>I'm starting with this statement:</p>
  
  <pre><code>var searchResults = client.Search&lt;File&gt;(
          s =&gt; s.Query(q =&gt; q.Wildcard(w =&gt; w.Value("*" + genre + "*").OnField("fileContents"))).AllIndices().AllTypes());
  </code></pre>
  
  <p>Which returns results in <code>searchResults.Documents</code> and adding .Fields to it:</p>
  
  <pre><code>var searchResults = client.Search&lt;File&gt;(
          s =&gt; s.Query(q =&gt; q.Wildcard(w =&gt; w.Value("*" + genre + "*").OnField("fileContents"))).AllIndices().AllTypes().Fields(f=&gt;f.filePath));
  </code></pre>
  
  <p>And it doesn't have anything in <code>searchResults.Documents</code> but it shows the number of hits correctly using <code>searchResults.Hits.Total</code>.</p>
  
  <p>The File class is just:</p>
  
  <pre><code>public class File
  {
    public string filePath { get; set; }
    public string fileContents { get; set; }
  }  
  </code></pre>
  
  <p>This generates the following json request:</p>
  
  <pre><code>{
  "fields": [
  "filePath"
  ],
  "query": {
      "wildcard": {
       "fileContents": {
          "value": "*int*"
        }
      }
    }
  }
  </code></pre>
  
  <p>Which when ran in Sense returns results and when doing <code>searchResults.Hits.Total</code> gives the number of hits.</p>
  
  <p>However, there is no records in the <code>searchResults.Document</code> IEnumerable.</p>
  
  <p>Is there a different way I'm supposed to be returning the one specific field? </p>