mirror of
https://github.com/logseq/logseq.git
synced 2026-05-28 14:39:48 +00:00
chore: search options tune
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}))]
|
||||
|
||||
Reference in New Issue
Block a user