# Jdbc river nested json object - split on delimeters!

**URL:** <https://discuss.elastic.co/t/jdbc-river-nested-json-object-split-on-delimeters/17324>\
**Category:** Elasticsearch\
**Created:** [May 2, 2014, 9:25pm UTC](https://discuss.elastic.co/t/jdbc-river-nested-json-object-split-on-delimeters/17324 "2014-05-02T21:25:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eric\_Sims](https://avatars.discourse-cdn.com/v4/letter/e/3be4f8/32.png) [@Eric\_Sims](https://discuss.elastic.co/u/Eric_Sims)\
**Post date:** [May 2, 2014, 9:25pm UTC](https://discuss.elastic.co/t/jdbc-river-nested-json-object-split-on-delimeters/17324/1 "2014-05-02T21:25:39Z")

</div>

so, i've got a table structure in sql for my 'movies' db that has some of  
the columns with comma-delimited data.

for example:

_sql server table pseudo-structure_: [column : row data]  
movieid: 1, actors: 'Mel Gibson, Danny Glover', genre: 'action', etc.

_simplified json mapping_:  
{  
"movies": {  
"\_id" : {  
"path" : "movieid"  
},  
"properties": {  
"movieid": {"type": "string"},  
"actors": {  
"properties": {  
"name": {"type": "string"},  
}  
},  
"genre": {"type": "string"},  
}  
}  
}

my question is, how would i split those actors into separate arrays of  
actors in the json object using jdbc-rivers?

i could write a .net program that generates a bulk file for api (or use a  
.net client for elasticsearch that does the puts), but i want to do it  
using rivers so that the table can be monitored for changes.

please help.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/d7ea2be3-c4a3-42fa-aafb-b02ea3468a95%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d7ea2be3-c4a3-42fa-aafb-b02ea3468a95%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 1:32am UTC](https://discuss.elastic.co/t/jdbc-river-nested-json-object-split-on-delimeters/17324/2 "2017-07-06T01:32:01Z")

</div>

Closed on July 6, 2017, 1:32am UTC


