使用lucene中文分析器优化中文检索

Wan Gavin
Wan Gavin
Less Than a Minute Read

使用lucene中文分析器 替换 Liferay 默认的StandardAnalyzer(一元分词)提高中文检索的质量。

portal-ext.properties
 #lucene.analyzer=org.apache.lucene.analysis.standard.StandardAnalyzer

可选中文分析器

org.wltea.analyzer.lucene.IKAnalyzer
http://code.google.com/p/ik-analyzer/

net.paoding.analysis.analyzer.PaodingAnalyzer
http://code.google.com/p/paoding/

org.apache.lucene.analysis.cn.smart.SmartChineseAnalyzer
http://code.google.com/p/imdict-chinese-analyzer/

添加以上分析器依赖的jar包

 讨论各中文分析器性能

Page Comments

The Technicalities of Static Sites

David Oliveira Montenegro
View Blog >

Customization is Dead! Long Live Customization!

David H Nebinger
View Blog >
customization banner image.png

Public Bug Bounty Program

David H Nebinger
View Blog >
bugbounty.png
Showing 1 to 3 of 3 entries.