Solr4.0搭建应用(一)

今天看到Solr4.0于是心血来潮重新整理一下,因为之前只整理过3.6的,而且还没有发到博客上。
下载地址http://lucene.apache.org/solr/
[img]http://dl.iteye.com/upload/attachment/0078/4053/66ad147e-1d90-315f-8fe5-1d196425f76b.jpg[/img]
点击下面的4.0
转向到http://www.apache.org/dyn/closer.cgi/lucene/solr/4.0.0
[img]http://dl.iteye.com/upload/attachment/0078/4055/7c4dc582-be31-3b72-a14a-cf58501376a8.jpg[/img]
我推荐大家用这个
http://labs.mop.com/apache-mirror/lucene/solr/4.0.0
你懂得,这是猫扑哦。

好吧,下载完毕后,我们解压,看到下图
[img]http://dl.iteye.com/upload/attachment/0078/4057/4394c016-4c49-3fca-8dc0-1e82a72ecadf.jpg[/img]
之后进入example文件夹,打开README.txt
部分内容如下
This directory contains an instance of the Jetty Servlet container setup to
run Solr using an example configuration.

To run this example:

java -jar start.jar

in this example directory, and when Solr is started connect to

http://localhost:8983/solr/

To add documents to the index, use the post.jar (or post.sh script) in
the example/exampledocs subdirectory (while Solr is running), for example:

cd exampledocs
java -jar post.jar *.xml
Or: sh post.sh *.xml

按照以上步骤,可以启动Solr了.
[img]http://dl.iteye.com/upload/attachment/0078/4062/e97ee699-10c0-3a11-a78f-c5a19887cac7.jpg[/img]

之后访问http://localhost:8983/solr/select?q=*:*

[img]http://dl.iteye.com/upload/attachment/0078/4066/3bf7989d-a8f0-3edb-a435-bc62c729c881.jpg[/img]

到此说明一切都很顺利,通过post.jar也将一个文档存到了Solr服务器上。

4.0的界面很让人激动,下一篇我来继续发布Tomcat部署Solr
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值