This pushes all the data returned from api to Elastic Search but not in desired format.
Problem statement:
Source API returns an object with Arraylist (that has 100 movie objects).
{"movieList":[{"movieId":1,"movieName":"Bank1","uniqueName":"Bank1","showInSearch":true,"address":{"name":"Bank1"},"notes":"Preversion for webservice more data comes later"},{"movieId":2,"movieName":"Alpha Omega","uniqueName":"Alpha Omega","showInSearch":true,"address":{"name":"Alpha Omega"},"description":"Alpha Omega's offering ."}]}
This inserts data into Elastic search with only single record "movielist" which internally has multiple records.
For proper searching , i want to insert individual records instead of 1 complete arraylist .
Please guide me , how can i accomplish this .
Thanks!
The split filter should give you seperate events for the array entries and the ruby code moves the data from the field "movieList" to the root of those events.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.