# \_parent in the fields search to return more than the "id"

**URL:** <https://discuss.elastic.co/t/-parent-in-the-fields-search-to-return-more-than-the-id/4213>\
**Category:** Elasticsearch\
**Created:** [April 11, 2011, 4:46pm UTC](https://discuss.elastic.co/t/-parent-in-the-fields-search-to-return-more-than-the-id/4213 "2011-04-11T16:46:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gitfy](https://avatars.discourse-cdn.com/v4/letter/g/85f322/32.png) [@gitfy](https://discuss.elastic.co/u/gitfy)\
**Post date:** [April 11, 2011, 4:46pm UTC](https://discuss.elastic.co/t/-parent-in-the-fields-search-to-return-more-than-the-id/4213/1 "2011-04-11T16:46:16Z")

</div>

is it possible to return more information about the parent in the  
child. Just limiting to the "id" information alone seems to less  
useful.

I am trying to do something like this.

I am modeling opportunities which are related to customers. So what i  
want to do is, whenever i query for opportunities, i would like to get  
more information about the customer data in the opportunity search  
list (like name and address etc).

Also, another question with respect to parent/child. Is the mapping  
that related parent - child relations, the name "\_parent" - is this  
something predefined and hardwired in the code or can i defined any  
name for this relation. I am trying to do more like associations in my  
use case, so that i can have opportunities associated to customers and  
also opportunities associated with users who deals with them.

I wanted to defined the metadata with multiple association to  
different types and publish opportunities against these associations.  
How can i achieve this ?

---

<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 6, 2017, 4:08am UTC](https://discuss.elastic.co/t/-parent-in-the-fields-search-to-return-more-than-the-id/4213/2 "2017-07-06T04:08:34Z")

</div>

Closed on July 6, 2017, 4:08am UTC


