# Es-hadoop question 7.6.2

**URL:** <https://discuss.elastic.co/t/es-hadoop-question-7-6-2/234572>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [May 27, 2020, 3:35pm UTC](https://discuss.elastic.co/t/es-hadoop-question-7-6-2/234572 "2020-05-27T15:35:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KK13](https://avatars.discourse-cdn.com/v4/letter/k/58f4c7/32.png) [@KK13](https://discuss.elastic.co/u/KK13)\
**Post date:** [May 27, 2020, 3:35pm UTC](https://discuss.elastic.co/t/es-hadoop-question-7-6-2/234572/1 "2020-05-27T15:35:52Z")

</div>

I am trying to Index data (parent child relation). data is sent using Spark

```auto
Index
------------------------------------------
PUT test_tree
{
"mappings":{
"properties":{
"fam_details": {
"type":"join",
**"relations":** {
"danfamily":["comfamily", "enterfamily"],
"comfamily":"richardfamily"
}}}}}

1. Data inserted in from Spark2 using esHadoop and mapping for
## Parent insert

esconf["es.mapping.id"] = "uniqueid"
**esconf["es.mapping.join"] = "fam_details" , /* also tried danfamily */**

## Child insert
----------------------------------------------------------------
esconf["es.mapping.id"] = "uniqueid of child"
**esconf["es.mapping.join"] = "comfamily"**
**esconf["es.mapping.routing"] = "uniqueid" (same field as parent)**

I am able to insert data from spark. I am able to search data

but no data when i query using has_parent, has_child queries

Note : Unable to use es.mapping.parent property in 7.6.2 

Can anyone let me know ,the correct settings bthat needs to be passed for parent and child documents for esconfigurations above ?

```

---

<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:** [June 24, 2020, 3:41pm UTC](https://discuss.elastic.co/t/es-hadoop-question-7-6-2/234572/2 "2020-06-24T15:41:23Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
