mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
⏪ Revert Document block sort value changed from 0 to 100 https://github.com/siyuan-note/siyuan/issues/12886
This commit is contained in:
@@ -945,7 +945,6 @@ func FullTextSearchBlock(query string, boxes, paths []string, types map[string]b
|
||||
typeFilter := buildTypeFilter(types)
|
||||
boxFilter := buildBoxesFilter(boxes)
|
||||
pathFilter := buildPathsFilter(paths)
|
||||
|
||||
blocks, matchedBlockCount, matchedRootCount = fullTextSearchByKeyword(query, boxFilter, pathFilter, typeFilter, ignoreFilter, orderByClause, beforeLen, page, pageSize)
|
||||
}
|
||||
pageCount = (matchedBlockCount + pageSize - 1) / pageSize
|
||||
|
||||
@@ -1445,7 +1445,7 @@ func nSort(n *ast.Node) int {
|
||||
case ast.NodeAttributeView:
|
||||
return 30
|
||||
case ast.NodeDocument:
|
||||
return 100
|
||||
return 0
|
||||
case ast.NodeText, ast.NodeTextMark:
|
||||
if n.IsTextMarkType("tag") {
|
||||
return 205
|
||||
|
||||
Reference in New Issue
Block a user