The order of "child_type" generated using Java API for DSL queries, seems 
to be wrong, the attached generated json does not carry out results.
The problems seems to be due to the position of that field position. Moving 
the "child_type" before "query", the json query works ok.

"has_child" : {
            "query" : {
              "query_string" : {
                "query" : "iPhone",
                "fields" : [ "ResourceURI" ]
              }
            },
            "child_type" : "facebookChild",
            "score_type" : "sum"
          }

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/088cd282-9af2-41e1-94b1-c6cd3d7dd43a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to