1

我试图让日文全文搜索在 postgresql 中工作。我发现了一些像acts_as_ludia和textsearch_ja这样的项目。但它们都接缝过时。有没有人有关于其他日本全文搜索库的任何信息?

4

2 回答 2

1

感谢 Hunspell 项目的 Laszlo,我在这里找到了一本日语词典http://cgit.freedesktop.org/libreoffice/core/tree/i18npool/source/breakiterator/data/ja.dic

于 2013-10-30T10:03:00.450 回答
0

The big problem with using Japanese and tsearch2 is that tsearch2 requires that languages be separated by whitespace between words and Japanese does not do this. However according to http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/docs/tsearch2j.html there are libraries available to make the conversion (these could be hooked into PostgreSQL through appropriate language functions). He then mentioned he had to modify some other things and his code is no longer available but off-hand I can't think of any reason you couldn't use simple dictionaries on Japanese at that point (you'd lose stemming and stop words) but that should get you going.

于 2013-04-19T16:51:46.587 回答