title: Parent/Child relationships in spring-data-elastic-search
body: <p>I'm using Spring-Data-Elastic-Search for searching/caching purposes.
  I need to execute a query which uses child(TermCache) and parent(ConceptCache) properties
  and return instances of child objects(this means i can't use nested objects).</p>
  
  <p>i have the following structure:</p>
  
  <pre><code>@Document(indexName = "termweb" , type = "term")
  public class TermCache {
  
    @Id
    private String id;
    private String name;
    private LanguageDTO language;
    private String status;
    private String definition;
  
    @Field(type = FieldType.String, store = true)
    @Parent(type = "concept")
    private Long conceptId;
  
    private String displayId;
    private Map&lt;Long, String&gt; fields = new HashMap&lt;&gt;();
    //todo think about storing it as a collection of nested objects
  
  }
  
  
  @Document( indexName = "termweb" , type = "concept")
  public class ConceptCache implements ConceptDTO{
  
   @Id
   private String id;
  
   private String displayId;
   private Long dictionaryId;
   private String dictionaryName;
  
   private Map&lt;Long, String&gt; fields = new HashMap&lt;&gt;();
  }
  </code></pre>
  
  <p>I need a hint on how to handle this type of tasks; should i use two separate queries or should i somehow fetch properties of a parent or maybe something else?</p>