# Elasticsearch - spark field name

**URL:** <https://discuss.elastic.co/t/elasticsearch-spark-field-name/133598>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [May 29, 2018, 1:12am UTC](https://discuss.elastic.co/t/elasticsearch-spark-field-name/133598 "2018-05-29T01:12:49Z")\
**Posts on this page:** 3\
**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:** [May 29, 2018, 1:12am UTC](https://discuss.elastic.co/t/elasticsearch-spark-field-name/133598/1 "2018-05-29T01:12:50Z")

</div>

No one knows about this?

Continuing the discussion from [Elasitcsearch-spark field name](https://discuss.elastic.co/t/elasitcsearch-spark-field-name/126373):

> [@Elasitcsearch-spark field name](https://discuss.elastic.co/t/elasitcsearch-spark-field-name/126373/1):
>
> I'm generating es data with spark like below code
> 
> > ```auto
> > 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:** ![james.baiera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/james.baiera/32/10209_2.png) [@james.baiera](https://discuss.elastic.co/u/james.baiera)\
**Post date:** [May 30, 2018, 7:46pm UTC](https://discuss.elastic.co/t/elasticsearch-spark-field-name/133598/2 "2018-05-30T19:46:39Z")

</div>

Hi @kdh6429 sorry that your post slipped under the radar. I've not had a chance to check in on the forums for a bit.

Those document metadata names should still be functional until 7.0 is released. There is already code checked in to the master branch to switch those field names in a backwards compatible manner when 7.0 goes live.

---

<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 27, 2018, 7:46pm UTC](https://discuss.elastic.co/t/elasticsearch-spark-field-name/133598/3 "2018-06-27T19:46:42Z")

</div>

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