mirror of
https://github.com/logseq/logseq.git
synced 2026-05-05 11:26:26 +00:00
Move all search related impl to worker
This commit also introduced a new ns `frontend.db.async` for async queries.
This commit is contained in:
@@ -23,12 +23,14 @@
|
||||
(query [_this q opts]
|
||||
(call-service! service "search:query" (merge {:q q} opts) true))
|
||||
|
||||
|
||||
(rebuild-blocks-indice! [_this]
|
||||
;; Not pushing all data for performance temporarily
|
||||
;;(let [blocks (search-db/build-blocks-indice repo)])
|
||||
(call-service! service "search:rebuildBlocksIndice" {}))
|
||||
|
||||
(rebuild-pages-indice! [_this]
|
||||
(call-service! service "search:rebuildPagesIndice" {}))
|
||||
|
||||
(transact-blocks! [_this data]
|
||||
(let [{:keys [blocks-to-remove-set blocks-to-add]} data]
|
||||
(call-service! service "search:transactBlocks"
|
||||
|
||||
Reference in New Issue
Block a user