2022-11-24 03:46:47 +00:00
|
|
|
package bootstrap
|
|
|
|
|
2022-12-05 05:28:39 +00:00
|
|
|
import (
|
|
|
|
"github.com/alist-org/alist/v3/internal/search"
|
|
|
|
log "github.com/sirupsen/logrus"
|
|
|
|
)
|
|
|
|
|
2022-11-24 03:46:47 +00:00
|
|
|
func InitIndex() {
|
2022-12-05 05:28:39 +00:00
|
|
|
progress, err := search.Progress()
|
|
|
|
if err != nil {
|
|
|
|
log.Errorf("init index error: %+v", err)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
if !progress.IsDone {
|
|
|
|
progress.IsDone = true
|
|
|
|
search.WriteProgress(progress)
|
|
|
|
}
|
2022-11-24 03:46:47 +00:00
|
|
|
}
|