# Elasticsearch Structured streaming api for bulk insert json documents

**URL:** <https://discuss.elastic.co/t/elasticsearch-structured-streaming-api-for-bulk-insert-json-documents/133245>\
**Category:** Elasticsearch\
**Created:** [May 25, 2018, 4:09am UTC](https://discuss.elastic.co/t/elasticsearch-structured-streaming-api-for-bulk-insert-json-documents/133245 "2018-05-25T04:09:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marut.launch](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@marut.launch](https://discuss.elastic.co/u/marut.launch)\
**Post date:** [May 25, 2018, 4:09am UTC](https://discuss.elastic.co/t/elasticsearch-structured-streaming-api-for-bulk-insert-json-documents/133245/1 "2018-05-25T04:09:23Z")

</div>

Hi,

I am reading data from kafka apply some transformation, update data schema and push it to elastic search.  
I am using spark (2.2.0), elasticsearch-spark (6.2.3).  
There is a api with spark streaming which can accept RDD with index name (JavaEsSpark.saveJsonToEs(rdd, index))  
I can't find api with structured streaming which can accept Json instead of structured data.  
Can someone help ?

---

<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 22, 2018, 4:09am UTC](https://discuss.elastic.co/t/elasticsearch-structured-streaming-api-for-bulk-insert-json-documents/133245/2 "2018-06-22T04:09:23Z")

</div>

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