Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
简而言之,是否有任何支持 Lucene.Net 的阿拉伯语分析器。因为我想索引大量的阿拉伯语 txt 文件。我可以使用标准分析器或空白分析器来解析阿拉伯文件吗?
analyzer = new WhitespaceAnalyzer();
Lucenete.Net.Contrib 包含一个阿拉伯语分析器,位于Lucene.Net.Analysis.Analyzer.ArabicAnalyzer.
Lucene.Net.Analysis.Analyzer.ArabicAnalyzer
使用 NuGet 安装它:
https://nuget.org/packages/Lucene.Net.Contrib/3.0.3
Lucenete.Net.Contrib 包含一个阿拉伯语分析器,但正确的命名空间是:
Lucene.Net.Analysis.AR.ArabicAnalyzer
见附件截图: