Instead of trying to put all your queries in the same JSON, you need to put
them one after another, separated by a newline. And before each query, you
need to put another json with headers, such as index name, although you can
leave that header empty if you will. Take a look here for details:
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.