# Is cross document query possible?

**URL:** https://discuss.elastic.co/t/is-cross-document-query-possible/68403
**Category:** Elasticsearch
**Created:** [December 8, 2016, 8:36am UTC](https://discuss.elastic.co/t/is-cross-document-query-possible/68403 "2016-12-08T08:36:39Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [December 8, 2016, 3:45pm UTC](https://discuss.elastic.co/t/is-cross-document-query-possible/68403/5 "2016-12-08T15:45:27Z")

</div>

May be this can help you?

> [@Define Parent-Child Relationship in Logstash](https://discuss.elastic.co/t/define-parent-child-relationship-in-logstash/51467):
>
> Hi, According to [https://github.com/logstash-plugins/logstash-output-elasticsearch/issues/129](https://github.com/logstash-plugins/logstash-output-elasticsearch/issues/129), this seems possible to do now. I'm trying to index two different sources (2 sql tables), and then correlate a parent-child relationship between them. Currently, ingesting data is perfectly fine. However, I'm really confused how to create the parent-child relationship within logstash... I actually can't even figure out how to do it using POST requests in elastic's examples found here: [https://www.el…](https://www.elastic.co/guide/en/elasticsearch/guide/current/parent-child-mapping.html)

---

_[View the full topic](https://discuss.elastic.co/t/is-cross-document-query-possible/68403)._
