mirror of
https://github.com/logseq/logseq.git
synced 2026-05-23 20:24:15 +00:00
fix(vec-search): new-hnsw-index when force-reset-index
This commit is contained in:
@@ -136,7 +136,7 @@
|
|||||||
Return synced? (bool)"
|
Return synced? (bool)"
|
||||||
[repo]
|
[repo]
|
||||||
(m/sp
|
(m/sp
|
||||||
(when-let [hnsw (get-hnsw-index repo)]
|
(when-let [hnsw (new-hnsw-index! repo)]
|
||||||
(when-not (zero? (.getCurrentCount hnsw))
|
(when-not (zero? (.getCurrentCount hnsw))
|
||||||
(init-index! hnsw)
|
(init-index! hnsw)
|
||||||
(m/? (task--write-index!* repo hnsw))))))
|
(m/? (task--write-index!* repo hnsw))))))
|
||||||
|
|||||||
Reference in New Issue
Block a user