# Partial Updates on index using Spark Streaming

**URL:** <https://discuss.elastic.co/t/partial-updates-on-index-using-spark-streaming/134792>\
**Category:** Elasticsearch\
**Created:** [June 6, 2018, 11:32am UTC](https://discuss.elastic.co/t/partial-updates-on-index-using-spark-streaming/134792 "2018-06-06T11:32:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darshan\_Shah](https://avatars.discourse-cdn.com/v4/letter/d/258eb7/32.png) [@Darshan\_Shah](https://discuss.elastic.co/u/Darshan_Shah)\
**Post date:** [June 6, 2018, 11:32am UTC](https://discuss.elastic.co/t/partial-updates-on-index-using-spark-streaming/134792/1 "2018-06-06T11:32:45Z")

</div>

0  
down vote  
favorite  
I am using following command to persist data in elastic search using spark streaming.

EsSparkSQL.saveToEs(DataFrame, indexname, ES\_CONFIG)  
With this, I am overwriting entire document, which I don't want.

I want to update only the fields for which data exists in this dataframe.

Please suggest, How to 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 4, 2018, 11:32am UTC](https://discuss.elastic.co/t/partial-updates-on-index-using-spark-streaming/134792/2 "2018-07-04T11:32:47Z")

</div>

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