My question is if elasticsearch client (or es go client) is thread-safe or not?
I mean say suppose I have one es instance is running on 127.0.0.1:9200 and I have multiple indexes and multiple queries to fetch the data from ES. So currently my queries are running in a serial manner but I want my queries to be executed in a parallel manner.
I mean say suppose I have one es instance is running on 127.0.0.1:9200 and I have multiple indexes and multiple queries to fetch the data from ES. So currently my queries are running in a serial manner but I want my queries to be executed in a parallel manner, example: I want to create a thread t1, which should run on EC1 (Elastic Search Client 1) which should execute my DSL query Q1. Similarly, another thread t2, should run on EC2 (Elastic Search Client 1) which should execute my DSL query Q2 and so on.
Is it possible to implement using golang ?
If someone can help me asap would be really helpful.
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.