# FEATURE REQUEST: parent.field query support for query\_string queries

**URL:** https://discuss.elastic.co/t/feature-request-parent-field-query-support-for-query-string-queries/40920
**Category:** Elasticsearch
**Created:** [February 3, 2016, 11:25pm UTC](https://discuss.elastic.co/t/feature-request-parent-field-query-support-for-query-string-queries/40920 "2016-02-03T23:25:36Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Darren\_Rush](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/darren_rush/32/2022_2.png) [@Darren\_Rush](https://discuss.elastic.co/u/Darren_Rush)
#### Post date: [February 3, 2016, 11:25pm UTC](https://discuss.elastic.co/t/feature-request-parent-field-query-support-for-query-string-queries/40920/1 "2016-02-03T23:25:36Z")

</div>

I am requesting that query\_string queries be able to specify parent fields as part of the query\_string query. This should not cause any scaling challenges as parent-child mapping ensures that both documents will be located on the same shard, the syntax is well supported for nested data, and this is an intuitive use case for parent mappings.

Currently there are two terrible ways to return Children based on search criteria for Parents:

1. use the has\_parent query construct - fine if you are able to build a single query use case, but virtually unusable if you are providing functionality to a user-facing search UI
2. nest the parent metadata into the each child - defeats the whole purpose of parent-child mapping, and requires every child to be updated anytime a parent record changes

If there is some technical reason this cannot be accomplished, please advise. If this is a feature others could use, please leave a +1 to get this issue some attention.

Thanks,  
D

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [February 4, 2016, 3:49am UTC](https://discuss.elastic.co/t/feature-request-parent-field-query-support-for-query-string-queries/40920/2 "2016-02-04T03:49:20Z")

</div>

Thanks for this request, please do also raise it on the Github repo - [https://github.com/elastic/elasticsearch/issues/](https://github.com/elastic/elasticsearch/issues/) 🙂

---

<div class="post-metadata">

### Author: ![Alex\_Szabo12](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@Alex\_Szabo12](https://discuss.elastic.co/u/Alex_Szabo12)
#### Post date: [February 9, 2016, 6:35pm UTC](https://discuss.elastic.co/t/feature-request-parent-field-query-support-for-query-string-queries/40920/3 "2016-02-09T18:35:56Z")

</div>

+1....

---

<div class="post-metadata">

### Author: ![Darren\_Rush](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/darren_rush/32/2022_2.png) [@Darren\_Rush](https://discuss.elastic.co/u/Darren_Rush)
#### Post date: [February 9, 2016, 6:36pm UTC](https://discuss.elastic.co/t/feature-request-parent-field-query-support-for-query-string-queries/40920/4 "2016-02-09T18:36:46Z")

</div>

Thanks @warkolm Here is the github tracking case: [https://github.com/elastic/elasticsearch/issues/16551](https://github.com/elastic/elasticsearch/issues/16551)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 5, 2017, 11:17pm UTC](https://discuss.elastic.co/t/feature-request-parent-field-query-support-for-query-string-queries/40920/5 "2017-07-05T23:17:52Z")

</div>


