This website uses cookies to ensure you get the best experience. Learn More.
使用lucene中文分析器优化中文检索
使用lucene中文分析器 替换 Liferay 默认的StandardAnalyzer(一元分词)提高中文检索的质量。
portal-ext.properties #lucene.analyzer=org.apache.lucene.analysis.standard.StandardAnalyzer
可选中文分析器
org.wltea.analyzer.lucene.IKAnalyzerhttp://code.google.com/p/ik-analyzer/net.paoding.analysis.analyzer.PaodingAnalyzerhttp://code.google.com/p/paoding/
org.apache.lucene.analysis.cn.smart.SmartChineseAnalyzer http://code.google.com/p/imdict-chinese-analyzer/
添加以上分析器依赖的jar包
讨论各中文分析器性能