Has-child query question

Hi All,
When my query contains a has-child query - can I get the child documents as
part of their parent documents?

Thanks

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/d38d7f4f-4fa2-4d7d-be19-00adad78d194%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Unfortunately no. If you can afford to do nested objects instead, then you
get back the whole doc with children.

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/dd44d380-a68a-4f06-8829-c38cffea62b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thanks so much.

I have many small child documents (well - actually records) for each parent

  • so nested objects will cause all child documents to re-index with each
    new child.

So the only difference between a has_child query and filter is that the
query allows you to influence the score?

Again thanks – will need to scratch my head quite heavily L

On Friday, April 4, 2014 1:04:33 AM UTC+3, Binh Ly wrote:

Unfortunately no. If you can afford to do nested objects instead, then you
get back the whole doc with children.

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/53923937-4e4d-4d78-813b-87585b0c3a35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.