研究一下solr

--------------------20080725------------------------------

apache-solr-1.2.0\example\exampledocs下面执行
java -Durl=http://localhost:8080/solr/update -jar post.jar cybertron.xml

jetty
java -Durl=http://localhost:8983/solr/update -jar post.jar cybertron.xml

完成了对于solr环境搭建
1)调整conf/schema.xml定义field,重新生成index。在tomcat服务端启动服务
2)用tomcat启动admin来管理solr
3)用php程序 solr.localhost.com来加数据和查询展示页面
http://solr.localhost.com/addPackage.php
http://solr.localhost.com/searchPackages.php
通过服务端http://localhost:8983/solr/update接口,上传xml文件,
select查询时,也是从服务端得到结果xml并进行显示

有关 Lucene(和 Solr)性能的更多信息,请参阅 参考资料 中给出的 ApacheCon Europe 的 “Advanced Lucene” 幻灯片演示。

猜你喜欢

转载自banditjava.iteye.com/blog/240650