Parent child documents query

Is there a way we can get all child's and parents if parent /child
qualifies for a query

--
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/35410b56-5334-4691-b966-b08402e284ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

For example:

Have three below documents , FakeDoc,Doc1&Doc2

Now how to write a query that qualifies Doc1 and also gets the all
documents which has same parentid as Doc1

That is Doc1 and Doc2 in this case

FakeDoc{

F1

}

Doc1

{

_parent:F1

}

Doc2

{

_parent:F2

}

On Friday, 23 January 2015 15:22:49 UTC-5, bvnrwork wrote:

Is there a way we can get all child's and parents if parent /child
qualifies for a query

--
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/32a3ac9e-409b-46df-af50-4ed6d8048bbc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

You should be able to query the child type with a has_parent query which
has a has_child query nested within it.

No idea how it would perform though.

On Sun, Jan 25, 2015 at 3:29 AM, bvnrwork budda08nitt@gmail.com wrote:

For example:

Have three below documents , FakeDoc,Doc1&Doc2

Now how to write a query that qualifies Doc1 and also gets the all
documents which has same parentid as Doc1

That is Doc1 and Doc2 in this case

FakeDoc{

F1

}

Doc1

{

_parent:F1

}

Doc2

{

_parent:F2

}

On Friday, 23 January 2015 15:22:49 UTC-5, bvnrwork wrote:

Is there a way we can get all child's and parents if parent /child
qualifies for a query

--
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/32a3ac9e-409b-46df-af50-4ed6d8048bbc%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/32a3ac9e-409b-46df-af50-4ed6d8048bbc%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
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/CAFps6aBkkAUe%2BMqHKhJccnVPwKLTZBqEVY%2B3sBo96YenO_CRnQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.