Currently using
solrServer = new CommonsHttpSolrServer(serverUrl);
and with these jars..
apache-solr-core-3.6.0
apache-solr-solrj-3.6.0
commons-codec-1.6
commons-httpclient-3.1
commons-io-2.1
jcl-over-slf4j-1.6.1
slf4j-api-1.6.1
slf4j-jdk14-1.6.1
lucene-core-3.5.0
However apache solr deprecated CommonHttpSolrServer
and suggested ConcurrentUpdateSolrServer
Replacing CommonHttpSolrServer
by ConcurrentUpdateSolrServer
gives runtime exception ..
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/HttpRequestInterceptor
which needs the jar httpcore-4.0-alpha6.jar
Exception also indicate three more exceptions.
Anybody having list of which extra jars like httpcore-4.0-alpha6.jar
are needed to replace CommonHttpSolrServer
by ConcurrentUpdateSolrServer