原理咨询:为什么能搜索词组? #135
-
看完博主写的博文,我个人理解如下:
然而我实测,直接使用 如果以上理解有任何不对之处,也烦请指正。 |
Beta Was this translation helpful? Give feedback.
Answered by
wangfenjin
Mar 26, 2024
Replies: 2 comments 2 replies
-
你得把完整的建表和查询语句发出来 我猜你没用 fts 表,你用的原始表去 match |
Beta Was this translation helpful? Give feedback.
2 replies
-
如果你要 fts 实现搜索词组,可以用 jieba_query simple_query 是单字搜索 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
因为
"memos_fts" match '中文'
这里的'中文'
也会被分词成 中 和 文 去查找。就是说,当我们设置了用 simple 分词的时候,往 db 里面插入数据会被分词(分词做索引),match 后面的 query 也会被分词(分词去匹配索引)