mirror of
https://github.com/logseq/logseq.git
synced 2026-05-21 11:22:44 +00:00
fix(vec-search): new-hnsw-index when force-reset-index
This commit is contained in:
@@ -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))))))
|
||||
|
||||
Reference in New Issue
Block a user