4

- Lucene.net 支持哪些所有语言?

- 例如。中文、俄文、日文、阿拉伯文、法文、德文等。

- 如果没有,有没有办法索引其他语言?

4

2 回答 2

6

Lucene is not limited to English, nor any other language. To index text properly, you need to use an Analyzer appropriate for the language of the text you are indexing. Lucene's default Analyzers work well for English. There are a number of other Analyzers in Lucene Sandbox, including those for Chinese, Japanese, and Korean.

Here is a list of analyzer which you can integrated with your Lucene.NET: https://svn.apache.org/repos/asf/incubator/lucene.net/trunk/src/contrib/Analyzers/

As you can see above lots of language are already included in the analyzers and if not included, go ahead and create it because if it is not listed only means, no one tried it yet, however it does not mean it is not supported.

Also read this SO discussion on Indexing multi-lingual content with Lucene.net

于 2012-06-10T18:47:42.777 回答
0

这是最新版本。 https://lucene.apache.org/core/8_3_1/analyzers-common/index.html

谷歌最新版本的 Lucene 并在搜索时更改最新版本链接中的版本号。

于 2019-12-19T09:51:29.883 回答