Hi Shawn,

Thanks for this.

I'm using maven and I had another library unrelated to solrj loading an
older version of the httpclient (4.4.1), which was causing the problem.

Regards,
Ryan




On Wed, 21 Feb 2018 at 12:50 Shawn Heisey <apa...@elyograg.org> wrote:

> On 2/20/2018 7:54 PM, Ryan Yacyshyn wrote:
> > I'd like to get a stream of search results using the solrj.io package
> but
> > running into a small issue.
>
> <snip>
>
> > Exception in thread "main" java.lang.NoSuchMethodError:
> >
> org.apache.http.impl.client.HttpClientBuilder.evictIdleConnections(JLjava/util/concurrent/TimeUnit;)Lorg/apache/http/impl/client/HttpClientBuilder;
>
> There is a problem accessing the HttpClient library. Either the
> httpclient jar is missing from your project, or it's the wrong version.
> You can use pretty much any 4.5.x version for recent SolrJ versions.
> 3.x versions won't work at all, and older 4.x versions not work.  The
> 5.0 beta releases also won't work. You can find information about 4.0
> and later versions of HttpClient here:
>
> http://hc.apache.org/
>
> If you use a dependency manager like gradle, maven, or ivy for your
> project, just be sure it's set to pull in all transitive dependencies
> for solrj, and you should be fine.  If you manage dependencies manually,
> you will find all of the extra jars required by the solrj client in the
> download, in the dist/solrj-lib directory.  Note that you can very
> likely upgrade individual dependencies to newer versions than Solr
> includes with no issues.
>
> Thanks,
> Shawn
>
>

Reply via email to