fix(vec-search): new-hnsw-index when force-reset-index

This commit is contained in:
rcmerci
2025-03-21 15:37:34 +08:00
parent bb226a4147
commit 1f31f08bf6

View File

@@ -136,7 +136,7 @@
Return synced? (bool)"
[repo]
(m/sp
(when-let [hnsw (get-hnsw-index repo)]
(when-let [hnsw (new-hnsw-index! repo)]
(when-not (zero? (.getCurrentCount hnsw))
(init-index! hnsw)
(m/? (task--write-index!* repo hnsw))))))