Thanks Badger for the reply. But can't use your solution as my XML is pretty huge and there are other nested arrays and objects into it for which I need force_array => false.
I am looking for some ruby code to handle this.
Would like to add one more input to the question when the above XML OrderReleases contains more than one element (OrderRelease) then the data is storing in the correct format into the Elastic but the same is not the case if it has only one element.
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.