On 3/14/2017 3:35 AM, Mahmoud Almokadem wrote: > After upgrading to 6.4.2 I got 3500+ docs/sec throughput with two uploading > clients to solr which is good to me for the whole reindexing. > > I'll try Shawn code to posting to solr using HttpSolrClient instead of > SolrCloudClient.
If the servers are running in SolrCloud mode, then you want CloudSolrClient. You do not want HttpSolrClient. The servers that my code talks to are not in Cloud mode, so I use the Http version. If you want to be able to use multiple threads for indexing, you will still need to create a custom HttpClient -- that's the point of the code snippet I shared. Replace "HttpSolrClient" with "CloudSolrClient" and "serverBaseUrl" with "zkHost" and it would work for cloud mode. Thanks, Shawn