全文检索之solr学习 学习教程 1、安装启动  2、solr页面基本操作 3、JAVA 客户端api

solr下载:

http://www.apache.org/dyn/closer.lua/lucene/solr/7.3.1

除了官网的教程,一切教程都是可以有错误的。

https://lucene.apache.org/solr/guide/7_3/solr-tutorial.html

1、安装启动

https://lucene.apache.org/solr/guide/7_3/solr-tutorial.html

 solr新版本已经不是以前那种在tomcat的app中启动了,要看官方教程。

solr现在也支持了cloud分布式部署了。

在linux suse11启动solr时,会报一个错:

lsof: unsupported TCP/TPI info selection: C

需要修改 solr脚本中的下面这行

#running=`lsof -PniTCP:$SOLR_PORT -sTCP:LISTEN`
running=`lsof -i:$SOLR_PORT`

 2、solr页面基本操作

http://lucene.apache.org/solr/guide/7_3/solr-tutorial.html

3、JAVA 客户端api

看文档是非常好用的。

http://lucene.apache.org/solr/guide/7_3/using-solrj.html#building-and-running-solrj-applications