浏览代码

:art: Simplify document block paths in search results https://github.com/siyuan-note/siyuan/issues/13364

Daniel 7 月之前
父节点
当前提交
a8f088cb5e
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      kernel/model/search.go

+ 3 - 1
kernel/model/search.go

@@ -1125,7 +1125,9 @@ func FullTextSearchBlock(query string, boxes, paths []string, types map[string]b
 		ret = []*Block{}
 	}
 
-	filterSelfHPath(ret)
+	if 0 == groupBy {
+		filterSelfHPath(ret)
+	}
 	return
 }