You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
select a.*from blocks as a,
(select*from blocks
where id in
(select root_id from blocks where content like'%思源%')
and id in
(select root_id from blocks where content like'%本地%')) as b
wherea.root_id=b.idand (a.contentlike'%思源%'ora.contentlike'%本地%')
select*from blocks where (id in(select root_id from blocks where content like'%思源%')) and (id in (select root_id from blocks where content like'%本地%'))
Activity
[-]多个搜索关键字匹配文档[/-][+]SQL 搜索支持多个搜索关键字匹配文档[/+]88250 commentedon Feb 13, 2023
仅支持用 SQL 搜索方式:
以下截图是按文档分组的结果:
mozhux commentedon Feb 13, 2023
有点复杂啊。。那这样对应的高亮有吗
88250 commentedon Feb 13, 2023
SQL 搜索没有高亮,如果一定要的话可以看下源码,参考源码用 fts 可以实现。
mozhux commentedon Feb 13, 2023
那似乎现在的版本就支持多条件搜索匹配呀。。新版是支持了什么新东西吗?,支持显示到块级别?
88250 commentedon Feb 13, 2023
是的,支持显示到具体命中的块。
🎨 SQL 搜索支持多个搜索关键字匹配文档 Fix siyuan-note/siyuan#7350