码迷,mamicode.com
首页 > 其他好文 > 详细

安装和使用solr

时间:2017-02-26 17:41:55      阅读:159      评论:0      收藏:0      [点我收藏+]

标签:get   check   prompt   amp   video   ide   ice   facet   apache   

下载Solr:wget http://apache.fayea.com/lucene/solr/6.4.1/solr-6.4.1.tgz
解压:tar -zxvf solr-6.4.1.tgz

 

bin/solr start
bin/solr create -c stdalone

bin/post -c stdalone example/exampledocs/*.xml

http://localhost:8983/solr/stdalone/select?q=video
http://localhost:8983/solr/stdalone/select?q=video&fl=id,name,price
http://localhost:8983/solr/stdalone/select?q=name:black

http://localhost:8983/solr/stdalone/select?q=price:[0%20TO%20400]&fl=id,name,price
http://localhost:8983/solr/stdalone/select?q=price:[0%20TO%20400]&fl=id, name,price&facet=true&facet.field=cat

bin/solr stop

bin/solr -e cloud

技术分享
bin/solr status
bin/solr healthcheck -c gettingstarted
bin/post -c gettingstarted example/exampledocs/*.xml

http://localhost:8983/solr/gettingstarted/select?q=price:[0%20TO%20400]&fl=id,%20name,price&facet=true&facet.field=cat

bin/solr stop -all

bin/solr -e cloud -noprompt

安装和使用solr

标签:get   check   prompt   amp   video   ide   ice   facet   apache   

原文地址:http://www.cnblogs.com/zl0372/p/solr.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!