Remove page content search

This commit is contained in:
Tienson Qin
2023-12-06 15:13:25 +08:00
parent 75c010e1c3
commit 678d5c8ee6
9 changed files with 8 additions and 200 deletions

View File

@@ -23,8 +23,6 @@
(query [_this q opts]
(call-service! service "search:query" (merge {:q q} opts) true))
(query-page [_this q opts]
(call-service! service "search:queryPage" (merge {:q q} opts) true))
(rebuild-blocks-indice! [_this]
;; Not pushing all data for performance temporarily
@@ -37,14 +35,8 @@
{:data {:added blocks-to-add
:removed blocks-to-remove-set}})))
(transact-pages! [_this data]
(let [{:keys [pages-to-remove-set pages-to-add]} data]
(call-service! service "search:transactpages"
{:data {:added pages-to-add
:removed pages-to-remove-set}})))
(truncate-blocks! [_this]
(call-service! service "search:truncateBlocks" {}))
(remove-db! [_this]
(call-service! service "search:removeDb" {})))
(call-service! service "search:removeDb" {})))