What Is Solr?
Solr is the popular, blazing fast open source enterprise searchplatform from the Apache Lucene project. Its major features includepowerful full-text search, hit highlighting,
faceted search, dynamicclustering, database integration, rich document (e.g., Word, PDF) handling, andgeospatialsearch. Solr is highly scalable, providing distributedsearch and index replication, and it powers
the search and navigation featuresof many of the world's largest internet sites.
Solr is written in Java and runs as a standalone full-text searchserver within a servlet container such asTomcat. Solr uses theLucene Java search library at its core for
full-text indexing and search, andhas REST-like HTTP/XML and JSON APIs that make it easy to use from virtuallyany programming language. Solr's powerful external configuration allows it tobe tailored to almost any type of application without Java coding, and
it hasan extensive plugin architecture when more advanced customization is required.
solr目前已经更新到3.5的版本可能由于中文分词器支持的原因(很多中文分词器并不支持solr的高版本),因此企业内部用的最多的还是1.4.1版本的solr,几乎支持所有的中分分词器,为了设计到solr的各方各面,已经公司的需要,因此,此次都是关于solr1.4.1相关的学习
windowns系统下在tomcat中安装单个solr
推荐学习地址:http://wiki.apache.org/solr/SolrTomcat
1.准备目录环境
新建目录D://solrworkspace/
下载solr1.4.1版本到目录D://solrworkspace/apache-solr-1.4.1.zip
下载tomcat6.0版本到目录D://solrworkspace/apache-tomcat-6.0.30.zip
解压D://solrworkspace/apache-solr-1.4.1.zip到当前目录为D://solrworkspace/apache-solr-1.4.1($APACHE_SOLR_HOME)
解压D://solrworkspace/apache-tomcat-6.0.30.zip到当前目录为D://solrworkspace/apache-tomcat-6.0.30($TOMCAT_HOME)
新建目录 D://solrworkspace/solr($SOLR_HOME)
新建目录($TOMCAT_HOME)/conf/Catalina/localhost
2.jar包部署
$APACHE_SOLR_HOME/dist/apache-solr-1.4.1.war copy到路径为D://solrworkspace/apache-solr-1.4.1.war 并改名为D://solrworkspace/solr.war
$APACHE_SOLR_HOME/dist/apache-solr-*.jar copy到目录$TOMCAT_HOME\lib
3.配置文件的修改
修改$TOMCAT_HOME/conf/tomcat-users.xml 添加