【问题标题】:Use Thesaurus as Dictionary for Synonyms in FTS?在 FTS 中使用同义词词典作为同义词词典?
【发布时间】:2019-06-20 03:26:33
【问题描述】:

据我了解,这本词典的功能是一样的,只是Synonyms Dict不支持词组操作。

在 PostgreSQl 全文搜索中可以使用同一个词典进行词库和短语搜索吗?

my_custom.ths

# synonyms
postgres : pgsql
postgresql : pgsql
postgre : pgsql
gogle : googl

# phrases
indices : index*
supernovae stars : sn
crab nebulae : crab

【问题讨论】:

    标签: postgresql full-text-search data-dictionary


    【解决方案1】:

    是的,你可以这样做。正如the documentation 解释的那样:

    PostgreSQL 当前的同义词词典实现是同义词词典的扩展,增加了短语支持。

    【讨论】:

    • 非常感谢。我在文档中阅读了这些行,但我怀疑是否有人采用这种方法来减少字典文件的数量。
    猜你喜欢
    • 2014-07-05
    • 1970-01-01
    • 1970-01-01
    • 2023-01-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-03-29
    相关资源
    最近更新 更多