Each element of your array is a different object? If that's the case you need to split your array and insert each document independently with the index API or use the bulk API to send your documents.
This can be done directly through the HTTP APIs or with any Elasticsearch client SDK (python, go, javascript, etc).
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.