我读到过在 Postgres 中使用字典时,如果一个词不被任何字典识别,它就不会被索引。我觉得这很麻烦。我希望除停用词之外的所有内容都被编入索引。
我可以吗?如果是,怎么办?
最佳答案
关于dictionaries的文档章节说:
The general rule for configuring a list of dictionaries is to place first the most narrow, most specific dictionary, then the more general dictionaries, finishing with a very general dictionary, like a Snowball stemmer or simple, which recognizes everything
因此,由于列表的最后一个字典,不会发生转储无法识别的单词。
这就是全文解析器开箱即用的工作方式,因此除非您自定义它,否则您不必担心它。
关于postgresql - 我怎样才能使除停用词之外的所有内容都被索引,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14301300/