diff --git a/src/main/frontend/components/search.cljs b/src/main/frontend/components/search.cljs index 8822f1e72a..26e86c7007 100644 --- a/src/main/frontend/components/search.cljs +++ b/src/main/frontend/components/search.cljs @@ -244,7 +244,7 @@ search-q (state/sub :search/q) show-result? (boolean (seq search-result)) blocks-count (or (db/blocks-count) 0) - timeout (if (> blocks-count 2000) 500 100)] + timeout (if (> blocks-count 2000) 500 300)] (rum/with-context [[t] i18n/*tongue-context*] [:div#search.flex-1.flex [:div.inner diff --git a/src/main/frontend/search.cljs b/src/main/frontend/search.cljs index 409d0832c7..43036f7dde 100644 --- a/src/main/frontend/search.cljs +++ b/src/main/frontend/search.cljs @@ -39,7 +39,7 @@ (clj->js {:keys ["uuid" "content"] :shouldSort true :tokenize true - :minMatchCharLength 3 + :minMatchCharLength 2 :distance 1000 :threshold 0.35}))] (swap! indices assoc-in [repo :blocks] indice) @@ -56,7 +56,7 @@ (clj->js {:keys ["name"] :shouldSort true :tokenize true - :minMatchCharLength 3 + :minMatchCharLength 2 :distance 1000 :threshold 0.35 }))]