lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Gerlowski <gerlowsk...@gmail.com>
Subject Re: ConcurrentUpdateSolrClient example?
Date Sun, 13 Aug 2017 20:58:35 GMT
Hi Paul,

I'll try reproducing this with the snippet provided, but I don't see
anything inherently wrong with the Builder usage you mentioned, assuming
the Solr base URL you provided is correct.

It would be easier to troubleshoot your issue though if you included some
more information about the NPE you're seeing. Could you post the stacktrace
to help others investigate please?

Best,

Jason

On Aug 13, 2017 5:43 AM, "Paul Smith Parker" <paul.smith.parker@gmail.com>
wrote:

> 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