feat(search): single database done

This commit is contained in:
Tienson Qin
2021-04-03 21:12:35 +08:00
parent 2d71389fe5
commit 2fdfd0dcb1
7 changed files with 109 additions and 49 deletions

View File

@@ -1756,7 +1756,7 @@
99)
(map (comp str :block/uuid))))
current-and-parents (set/union #{(str (:block/uuid current-block))} block-parents)]
(p/let [result (search/block-search (state/get-current-repo) q {:limit 10})]
(p/let [result (search/block-search (state/get-current-repo) q {:limit 20})]
(remove
(fn [h]
(contains? current-and-parents (:block/uuid h)))