Indices are created per cluster, not host, so if these two nodes belong to the same cluster you only need to send the request to one of the nodes. Elasticsearch will then create the index and distribute shards across all nodes in the cluster.
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.