♻️ 重命名重建索引函数

This commit is contained in:
Liang Ding
2022-09-16 19:45:46 +08:00
parent e2e929538b
commit 67ff76c605
6 changed files with 11 additions and 11 deletions

View File

@@ -55,7 +55,7 @@ func refreshFiletree(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)
model.RefreshFileTree()
model.FullReindex()
}
func doc2Heading(c *gin.Context) {

View File

@@ -213,7 +213,7 @@ func setSearch(c *gin.Context) {
model.Conf.Save()
sql.SetCaseSensitive(s.CaseSensitive)
if s.CaseSensitive != oldCaseSensitive {
model.RefreshFileTree()
model.FullReindex()
}
sql.ClearVirtualRefKeywords()
ret.Data = s