Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[add] 全文搜索 & 修复空间收藏BUG #341

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "Revert "[feat] 全文搜索""
This reverts commit d57d04d.
root committed Mar 21, 2022
commit d8355374ad09545b6a74709ed1183304a33b19e2
7 changes: 4 additions & 3 deletions app/work/doc_search.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package work

import (
"sync"
"time"

"github.com/astaxie/beego"
"github.com/astaxie/beego/logs"
"github.com/phachon/mm-wiki/app/models"
"github.com/phachon/mm-wiki/app/services"
"github.com/phachon/mm-wiki/app/utils"
"sync"
"time"
)

var (
@@ -120,7 +121,7 @@ func (d *DocSearch) updateAllDocIndex() {
batchUpdateDocNum = 100
}
services.DocIndexService.UpdateAllDocIndex(batchUpdateDocNum)
services.DocIndexService.Flush()
// services.DocIndexService.Flush()

d.lock.Lock()
d.isTaskRunning = false