Skip to content

Commit

Permalink
fix: full search indexing missing latest subject
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Oct 14, 2024
1 parent 8dc04ce commit bb9ae3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/search/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit bb9ae3d

Please sign in to comment.