chore: search options tune

This commit is contained in:
Tienson Qin
2021-03-16 15:24:31 +08:00
parent f7bc6f1298
commit 1af67a0a24
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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
}))]