diff --git a/internal/search/client.go b/internal/search/client.go index 62a3d30e..d92627b9 100644 --- a/internal/search/client.go +++ b/internal/search/client.go @@ -299,7 +299,7 @@ func (c *client) firstRun() { c.log.Info(fmt.Sprintf("run full search index with max subject id %d", maxSubject.ID)) width := len(strconv.Itoa(int(maxSubject.ID))) - for i := model.SubjectID(1); i < maxSubject.ID; i++ { + for i := model.SubjectID(1); i <= maxSubject.ID; i++ { if i%10000 == 0 { c.log.Info(fmt.Sprintf("progress %*d/%d", width, i, maxSubject.ID)) }