Mysql 查找与PostgreSQL关系密切的单词

Mysql 查找与PostgreSQL关系密切的单词,mysql,sql,postgresql,full-text-search,innodb,Mysql,Sql,Postgresql,Full Text Search,Innodb,有没有一种方法可以找到经常与PostgreSQL一起出现的单词。我知道MySQL在使用邻近搜索时,通过InnoDB表支持这一点 例如: select quote as "Too Far Apart" from quotes where match(quote) against ('"early wise" @20' in boolean mode); ts_rank_cd根据术语之间的距离提供不同的值 select ts_rank_cd( to_tsvector('

有没有一种方法可以找到经常与PostgreSQL一起出现的单词。我知道MySQL在使用邻近搜索时,通过InnoDB表支持这一点

例如:

select quote as "Too Far Apart" 
from quotes
where match(quote) against ('"early wise" @20' in boolean mode);

ts_rank_cd
根据术语之间的距离提供不同的值

select
    ts_rank_cd( 
        to_tsvector('simple', 'the quick brown fox'), 
        plainto_tsquery('simple', 'the fox') 
    ) first,
    ts_rank_cd( 
        to_tsvector('simple', 'the quick brown fox'), 
        plainto_tsquery('simple', 'quick brown') 
    ) second;
输出:

first       second
0.0333333   0.1

0.1/ts_rank\u cd
似乎给出了单词之间的实际距离

我认为这只适用于查找相似的单词,而不是看起来很接近的单词谢谢。这实际上看起来是一个很好的解决方案。我会测试一下以确定。