Solr4:环境搭建,Tomcat7+Solr4.x+中文分词+多核

1. 环境

Tomcat下载地址:http://tomcat.apache.org/

Solr下载地址:http://lucene.apache.org/solr/

IKAnalyzer中文分词器下载地址:http://code.google.com/p/ik-analyzer/downloads/list

mmseg4j中文分词器下载地址:http://code.google.com/p/mmseg4j/downloads/list

Lucene下载地址:http://lucene.apache.org/

2. 实现步骤

1). 建立基本环境

参考:Solr4:Tomcat7下面配置Solr

2). 配置中文分词

参考:

Solr4:加入中文分词IKAnalyzer2012 FF

Solr4:加入中文分词mmseg4j

Solr4:配置mmseg4j同义词(已经配置好中文分词)

3). 多核环境(可选)

参考:Solr4:Tomcat7与Solr之多核配置(Multiple Cores)

4). 可能需要导入到项目中的若干包

中文分词器包:

IKAnalyzer2012FF_u1.jar

mmseg4j-all-1.9.0.v20120712-SNAPSHOT.jar

Lucene包:

lucene-core-4.x.x.jar

lucene-highlighter-4.x.x.jar

lucene-queryparser-4.x.x.jar

SolrJ包:

solr-solrj-4.x.x.jar

httpmime-4.1.x.jar

slf4j-api-1.6.x.jar

noggit-0.5.jar

JSON包:

json-lib-2.x.x-jdkxx.jar

ezmorph-1.0.x.jar

commons-beanutils-1.8.x.jar 

posted @ 2013-02-20 15:44  那些年的事儿  阅读(1844)  评论(0编辑  收藏  举报