如何为 postgresql 文本搜索创建 affix 和 dic 文件
How to create the affix and dic files for postgresql text search
我想在我的一个项目中使用 postgresql 的文本搜索功能。支持的语言将是英语和印度尼西亚语。不幸的是,我找不到要使用的印度尼西亚语配置。 (示例在这里https://www.cs.hmc.edu/~geoff/ispell-dictionaries.html)
正在查看 https://www.postgresql.org/docs/11/textsearch-dictionaries.html, it seems I can make my own custom stopwords, affix, and dic files. I already found and load the stopwords file (from https://github.com/masdevid/ID-Stopwords), meanwhile for the affix (the rule looks like here http://indodic.com/affixeng.html) 我似乎找不到文件,也找不到写入 affix/dic 文件的方法。
有人能告诉我怎么做吗,或者我在哪里可以找到更详细的信息?
PostgreSQL 文档中引用的 Ispell link 具有以下信息:
Complete documentation for ispell, including documentation of the affix-file format, comes with the distribution kit in Unix manual-page format. If you have ispell installed on your machine, you should be able to type "man ispell
" to view it. For convenience and browsing, the primary manual page for ispell is also available online.
你必须研究那个,然后你可以创建一个词缀文件。
我想在我的一个项目中使用 postgresql 的文本搜索功能。支持的语言将是英语和印度尼西亚语。不幸的是,我找不到要使用的印度尼西亚语配置。 (示例在这里https://www.cs.hmc.edu/~geoff/ispell-dictionaries.html)
正在查看 https://www.postgresql.org/docs/11/textsearch-dictionaries.html, it seems I can make my own custom stopwords, affix, and dic files. I already found and load the stopwords file (from https://github.com/masdevid/ID-Stopwords), meanwhile for the affix (the rule looks like here http://indodic.com/affixeng.html) 我似乎找不到文件,也找不到写入 affix/dic 文件的方法。
有人能告诉我怎么做吗,或者我在哪里可以找到更详细的信息?
PostgreSQL 文档中引用的 Ispell link 具有以下信息:
Complete documentation for ispell, including documentation of the affix-file format, comes with the distribution kit in Unix manual-page format. If you have ispell installed on your machine, you should be able to type "
man ispell
" to view it. For convenience and browsing, the primary manual page for ispell is also available online.
你必须研究那个,然后你可以创建一个词缀文件。