Fix bleve fuzziness search (#33078)

Close #31565
This commit is contained in:
wxiaoguang authored and GitHub committed 2025-01-03 00:32:02 +08:00
1 parent 9882917bce
commit 45973a100b
11 files changed
+83 -52

No files matched your search

+1 -2
View File
@@ -123,13 +123,12 @@ func Init() {
for _, indexerData := range items {
log.Trace("IndexerData Process Repo: %d", indexerData.RepoID)
if err := index(ctx, indexer, indexerData.RepoID); err != nil {
unhandled = append(unhandled, indexerData)
if !setting.IsInTesting {
log.Error("Codes indexer handler: index error for repo %v: %v", indexerData.RepoID, err)
}
}
}
return unhandled
return nil // do not re-queue the failed items, otherwise some broken repo will block the queue
}
indexerQueue = queue.CreateUniqueQueue(ctx, "code_indexer", handler)