Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法防止短于指定值的单词出现在tsvector? MySQL 可以ft_min_word_len选择,PostgreSQL 有类似的东西吗?
tsvector
ft_min_word_len
简短的回答是否定的。
tsearch2 使用字典来规范化文本:
12.6。字典 字典用于消除不应该在搜索中考虑的单词(停用词),并将单词标准化,以便相同单词的不同派生形式匹配。成功规范化的词称为词素。
12.6。字典
字典用于消除不应该在搜索中考虑的单词(停用词),并将单词标准化,以便相同单词的不同派生形式匹配。成功规范化的词称为词素。
以及如何使用字典解析和词法分析