title: Query by complex Object field
body: <p>Consider the document with complex object field:</p>
  
  <pre class="lang-java prettyprint-override"><code>@Getter  @Setter
  @Document
  class A{
     @Id
      private String id;
  
   @Field(
          type = FieldType.Object,
          includeInParent = true
      )
      private B b;
  }
  
  @Getter  @Setter
  class B{
  String field1;
  C c;
  }
  
  @Getter  @Setter
  class C{
  String field1;
  }
  
  public interface ARepo extends ElasticsearchRepository&lt;A, String&gt; {
      Optional&lt;A&gt; findByB(B b);
  }
  
  </code></pre>
  
  <p>When I execute the <code>aRepo.findByB(someB)</code>, the built query  doesn't extract <code>B</code> fields, but contains the result of  <code>someB.toString()</code> as filter for field <code>b</code>.</p>
  
  <p>I have JPA background and expect similar behavior . If this is not supported, what is the recommended approach for these kind of queries ?</p>
  
  <p>Thanks</p>