mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-23 08:46:09 +01:00
🎨 搜索支持按文档分组展现搜索结果 https://github.com/siyuan-note/siyuan/issues/4772
This commit is contained in:
parent
2ce8ce79bd
commit
f678a8877e
2 changed files with 1 additions and 4 deletions
|
|
@ -213,7 +213,7 @@ func fullTextSearchBlock(c *gin.Context) {
|
|||
querySyntax = querySyntaxArg.(bool)
|
||||
}
|
||||
groupByArg := arg["groupBy"]
|
||||
var groupBy int // 0:不分组,1:按文档分组,2:按文档树结构分组
|
||||
var groupBy int // 0:不分组,1:按文档分组
|
||||
if nil != groupByArg {
|
||||
groupBy = int(groupByArg.(float64))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -286,9 +286,6 @@ func FullTextSearchBlock(query, box, path string, types map[string]bool, querySy
|
|||
}
|
||||
}
|
||||
ret = roots
|
||||
case 2: // 按文档树结构分组
|
||||
// TODO
|
||||
ret = blocks
|
||||
default:
|
||||
ret = blocks
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue