howto:使用solrj

如果没有使用maven:
solrj3.4要导入以下jar包到classpath
使用maven比较简单
 <dependency>               <artifactId>solr-solrj</artifactId>               <groupId>org.apache.solr</groupId>               <version>3.4.0</version>               <type>jar</type>               <scope>compile</scope>        </dependency>
以上所有jar包可以在
example\work\Jetty_0_0_0_0_8983_solr.war__solr__k1kf17\webapp\WEB-INF\lib目录下找到(需先运行示例程序:在example目录下运行 java -jar start.jar)
 





原文地址:https://www.cnblogs.com/HelloCoding/p/2327473.html