Skip to content

原理咨询:为什么能搜索词组? #135

Answered by wangfenjin
ylc395 asked this question in Q&A
Discussion options

You must be logged in to vote

因为 "memos_fts" match '中文' 这里的 '中文' 也会被分词成 中 和 文 去查找。

就是说,当我们设置了用 simple 分词的时候,往 db 里面插入数据会被分词(分词做索引),match 后面的 query 也会被分词(分词去匹配索引)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@ylc395
Comment options

@wangfenjin
Comment options

Answer selected by wangfenjin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants