fix: fts5 match query

This commit is contained in:
Tienson Qin
2022-01-07 00:36:49 +08:00
parent 2e8f799a1c
commit 4d738e7926

View File

@@ -178,7 +178,9 @@
(string/replace " or " " OR ")
(string/replace " | " " OR ")
(string/replace " not " " NOT "))
match-input (str "\"" match-input "\"")
match-input (if (not= q match-input)
(string/replace match-input "," "")
(str "\"" match-input "\""))
non-match-input (str "%" (string/replace q #"\s+" "%") "%")
limit (or limit 20)
select "select rowid, uuid, content, page from blocks_fts where "