lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Smith Parker <paul.smith.par...@gmail.com>
Subject ConcurrentUpdateSolrClient example?
Date Sun, 13 Aug 2017 09:43:23 GMT
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.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message