fix: increase the default search length

Fixes #10569
pull/10581/head^2
Tienson Qin 2023-11-29 18:54:57 +08:00
parent 5a4bba1378
commit 9e412168ce
2 changed files with 2 additions and 2 deletions

View File

@ -1643,7 +1643,7 @@
editing-page (and block
(when-let [page-id (:db/id (:block/page block))]
(:block/name (db/entity page-id))))
pages (search/page-search q 100)]
pages (search/page-search q)]
(if editing-page
;; To prevent self references
(remove (fn [p] (= (util/page-name-sanity-lc p) editing-page)) pages)

View File

@ -135,7 +135,7 @@
(defn page-search
"Return a list of page names that match the query"
([q]
(page-search q 10))
(page-search q 500))
([q limit]
(when-let [repo (state/get-current-repo)]
(let [q (util/search-normalize q (state/enable-search-remove-accents?))