Liferay DXP Free Tier    |    From download to running in minutes    |    Get started →

Blogs

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

Wan Gavin
Wan Gavin
Alle Minuutin Luku

使用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包

 讨论各中文分析器性能

Sivun kommentit

Related Assets...

Tuloksia Ei Löytynyt

More Blog Entries...

Ben Turner
marraskuuta 26, 2026
Himanshu Chauhan
marraskuuta 20, 2026
Tony Lim
marraskuuta 19, 2026