|
|
@@ -1820,12 +1820,13 @@
|
|
|
query-atom (if (:dsl-query? config)
|
|
|
(let [result (query-dsl/query (state/get-current-repo) (:query query))]
|
|
|
(if (string? result) ; full-text search
|
|
|
- (atom
|
|
|
- (if (string/blank? result)
|
|
|
- []
|
|
|
- (let [blocks (search/block-search result 50)]
|
|
|
- (when (seq blocks)
|
|
|
- (db/pull-many (state/get-current-repo) '[*] (map (fn [b] [:block/uuid (uuid (:block/uuid b))]) blocks))))))
|
|
|
+ (atom nil)
|
|
|
+ ;; (atom
|
|
|
+ ;; (if (string/blank? result)
|
|
|
+ ;; []
|
|
|
+ ;; (let [blocks (search/block-search result 50)]
|
|
|
+ ;; (when (seq blocks)
|
|
|
+ ;; (db/pull-many (state/get-current-repo) '[*] (map (fn [b] [:block/uuid (uuid (:block/uuid b))]) blocks))))))
|
|
|
result))
|
|
|
(db/custom-query query))]
|
|
|
(assoc state :query-atom query-atom)))
|