🎨 Improve search default sort https://github.com/siyuan-note/siyuan/issues/8624
This commit is contained in:
parent
d1ccc9bc0f
commit
4676d3b87e
1 changed files with 2 additions and 2 deletions
|
@ -559,12 +559,12 @@ func buildOrderBy(method, orderBy int) string {
|
|||
case 6:
|
||||
if 0 != method && 1 != method {
|
||||
// 只有关键字搜索和查询语法搜索才支持按相关度升序 https://github.com/siyuan-note/siyuan/issues/7861
|
||||
return "ORDER BY sort DESC"
|
||||
return "ORDER BY sort DESC, updated DESC"
|
||||
}
|
||||
return "ORDER BY rank DESC" // 默认是按相关度降序,所以按相关度升序要反过来使用 DESC
|
||||
case 7:
|
||||
if 0 != method && 1 != method {
|
||||
return "ORDER BY sort ASC"
|
||||
return "ORDER BY sort ASC, updated DESC"
|
||||
}
|
||||
return "ORDER BY rank" // 默认是按相关度降序
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue