feat: Search enhancement (#2562)
* feat: ignore AList storage on indexing * fix: remove unused err in `walkFn` * chore(ci): fix auto_lang trigger and run it * feat: batch index * feat: quit index & init index * feat: set DocType for bleve data * fix: build index cleanup check origin err
This commit is contained in:
@ -1,5 +1,18 @@
|
||||
package bootstrap
|
||||
|
||||
import (
|
||||
"github.com/alist-org/alist/v3/internal/search"
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
func InitIndex() {
|
||||
// TODO init ? Probably not.
|
||||
progress, err := search.Progress()
|
||||
if err != nil {
|
||||
log.Errorf("init index error: %+v", err)
|
||||
return
|
||||
}
|
||||
if !progress.IsDone {
|
||||
progress.IsDone = true
|
||||
search.WriteProgress(progress)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user