# Elasitcsearch-spark field name

**URL:** <https://discuss.elastic.co/t/elasitcsearch-spark-field-name/126373>\
**Category:** Elasticsearch\
**Created:** [April 2, 2018, 5:28am UTC](https://discuss.elastic.co/t/elasitcsearch-spark-field-name/126373 "2018-04-02T05:28:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kdh6429](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kdh6429/32/31676_2.png) [@kdh6429](https://discuss.elastic.co/u/kdh6429)\
**Post date:** [April 2, 2018, 5:28am UTC](https://discuss.elastic.co/t/elasitcsearch-spark-field-name/126373/1 "2018-04-02T05:28:40Z")

</div>

I'm generating es data with spark like below code

> ```
> myParentRdd.saveToEs( Map( "es.mapping.id" -> "oid", "es.mapping.join" -> "pd_join"))
> myChildRdd.saveToEs( Map( "es.mapping.join" -> "pd_join"))
> 
> ```

This code works well but there is some deprecated logs.

> Deprecated field [\_routing] used, expected [routing] instead  
> Deprecated field [\_parent] used, expected [parent] instead

Any idea with this log?

I'm using Elastics Search 6.2.2 with below libraries

> compile group: 'org.elasticsearch', name: 'elasticsearch-spark-20\_2.11', version: '6.2.2'  
> compile group: 'org.scala-lang', name: 'scala-library', version: '2.11.8'  
> compile group: 'org.apache.spark', name: 'spark-core\_2.11', version: '2.1.2'

---

<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:** [April 30, 2018, 5:28am UTC](https://discuss.elastic.co/t/elasitcsearch-spark-field-name/126373/2 "2018-04-30T05:28:50Z")

</div>

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