目前正在使用
solrServer = new CommonsHttpSolrServer(serverUrl);
和这些罐头。
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 ..
线索“main” java.lang. NoClassDefffoundError: org/pache/http/Http 请求拦截
的例外
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