solr全文检索服务器与tomact整合 IK Analyzer 2012FF_hf1 中文分词器的配置
2017-08-15 10:35
555 查看
第一步 复制
复制IKAnalyzer2012FF_u1.jar到Tomcat下面的webapps的solr应用程序中的lib目录下
[root@localhost IK Analyzer 2012FF_hf1]# cp IKAnalyzer2012FF_u1.jar /usr/local/solr/tomcat/webapps/solr/WEB-INF/lib
第二步创建 classes文件
[root@localhost IK Analyzer 2012FF_hf1]# cd /usr/local/solr/tomcat/webapps/solr/WEB-INF
[root@localhost WEB-INF]# mkdir classes
第三步 复制 IKAnalyzer.cfg.xml ext_stopword.dic mydict.dic 到 sorl中的classes文件中
[root@localhost IK Analyzer 2012FF_hf1]# cp IKAnalyzer.cfg.xml ext_stopword.dic mydict.dic /usr/local/solr/tomcat/webapps/solr/WEB-INF/classes
[root@localhost solrhome]# cd collection1/
[root@localhost collection1]# cd conf
[root@localhost conf]# vi schema.xml
<fieldType name="text_ik" class="solr.TextField">
<analyzer class="org.wltea.analyzer.lucene.IKAnalyzer"/>
</fieldType>
<field name="item_title" type="text_ik" indexed="true" stored="true"/>
<field name="item_sell_point" type="text_ik" indexed="true" stored="true"/>
<field name="item_price" type="long" indexed="true" stored="true"/>
<field name="item_image" type="string" indexed="false" stored="true" />
<field name="item_category_name" type="string" indexed="true" stored="true" />
<field name="item_desc" type="text_ik" indexed="true" stored="false" />
<field name="item_keywords" type="text_ik" indexed="true" stored="false" multiValued="true"/>
<copyField source="item_title" dest="item_keywords"/>
<copyField source="item_sell_point" dest="item_keywords"/>
<copyField source="item_category_name" dest="item_keywords"/>
<copyField source="item_desc" dest="item_keywords"/>
相关文章推荐
- solr全文检索服务器与tomact整合
- 你不知道的全文检索---solr安装中文分词器及配置业务字段
- 全文检索引擎Solr系列——整合中文分…
- nutch1.8+solr 4 配置过程+ikanalayzer2012 中文分词器
- 全文检索引擎Solr系列——整合中文分词组件mmseg4j
- (四)Solr6.4.1配置中文分词器IK Analyzer详解
- Solr配置中文分词器IK Analyzer详解
- 全文检索引擎Solr系列——整合中文分词组件mmseg4j
- 全文检索引擎Solr系列——整合中文分词组件IKAnalyzer
- solr配置中文分词器IK Analyzer
- 全文检索引擎Solr系列——整合中文分词组件mmseg4j
- 全文检索引擎Solr系列——整合中文分词组件IKAnalyzer
- Solr配置中文分词器IK Analyzer详解
- 全文检索引擎Solr系列——整合中文分词组件mmseg4j
- 全文检索引擎Solr系列——整合中文分词组件IKAnalyzer
- solr服务器搭建与Tomact整合及使用
- solr6.X配置中文分词器IK Analyzer
- 大数据——nutch1.8+solr 4 配置过程+ikanalayzer2012 中文分词器
- solr-4.10.0、tomcat7、IKAnalyzer2012FF_u1中文分词器相整合以及相关配置
- Solr全文检索服务器搭建与基本使用介绍