Spring Data Elastic Search Nested Field and NativeSearchQueryBuilder.withFields
<p>I can't seem to get Nested Fields to return when I use the NativeSearchQueryBuilder.withFields(...) method.</p>

<p>Here is my parent Object:</p>

<pre><code>@Document(indexName = "inventory")
public class Inventory
{
  @Id
  private String id;
  @Field(type=FieldType.String)
  private String name;
  @Field(type=FieldType.Nested, index=FieldIndex.not_analyzed, store=true)
  private List&lt;Model&gt; models;
}
</code></pre>

<p>And here is the nested Object:</p>

<pre><code>public class Model
{
   @Field(type=FieldType.String, index=FieldIndex.not_analyzed, store=true)
   private String model;
   @Field(type=FieldType.String, index=FieldIndex.not_analyzed, store=true)
   private Set&lt;String&gt; series;
}
</code></pre>

<p>And the Query</p>

<pre><code>NativeSearchQueryBuilder nativeSearchQueryBuilder = new NativeSearchQueryBuilder();
nativeSearchQueryBuilder.withQuery(QueryBuilders.matchAllQuery());
nativeSearchQueryBuilder.withFields("models.series");
NativeSearchQuery nativeSearchQuery = nativeSearchQueryBuilder.build();
FacetedPage&lt;Inventory&gt; results = inventoryRepository.search(nativeSearchQuery);
</code></pre>

<p>Resulting TotalElements = 529
But each Object in the Content Looks like this (in JSON format):</p>

<pre><code>{
   "id":"d5f82880-15bc-45ed-8abb-ff97d0e45da9",
   "name": null,
   "models": null
}
</code></pre>

<p>If I remove the withFields(...) setting, I get back:</p>

<pre><code>{
   "id":"d5f82880-15bc-45ed-8abb-ff97d0e45da9",
   "name": "Cool Beans",
   "models": [
     {
       "model" : "foo",
       "series" : ["bar"]
     }
   ]
}
</code></pre>

<p>I've tried models, models.model, models.series, model, series. I can't get withFields working with NestedFields.</p>

<p>Any thoughts?</p>