Hello,

I can’t find an example on how to properly instantiate/configure an instance of 
ConcurrentUpdateSolrClient.

I tried this but it gives me a NPE: 

ConcurrentUpdateSolrClient solrClient = new 
ConcurrentUpdateSolrClient.Builder(“http://localhost:8389/solr 
<http://localhost:8389/solr>/core").build();

While this seems to work (it should use an internal httpClient):
ConcurrentUpdateSolrClient solrClient = new 
ConcurrentUpdateSolrClient.Builder(“http://localhost:8389/solr 
<http://localhost:8389/solr>/core")
                                .withHttpClient(null)
                                .withQueueSize(1000)
                                .withThreadCount(20)
                                .build();

Is this the correct way to set it up?

Thanks,
P.

Reply via email to