You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.
Currently search uses a simple LIKE"%query%" for queries. We should switch to full text search so that search works better. It will also be needed for implementing forte-music/schema#51 when it lands.
There doesn't seem to be SQlite full text search support in diesel. Here are some issues I've encountered while looking into this.
CREATE VIRTUAL TABLE email USING fts5(sender, title, body);
INSERT INTO email (sender, title, body) VALUES ('John Doe', 'Hello World', 'Welcome john to the land of the awesome');
Running
/usr/bin/cargo run --color=always --package diesel-fts --bin diesel-fts
Compiling diesel-fts v0.1.0 (file:///home/me/projects/diesel-fts)
Finished dev [unoptimized + debuginfo] target(s) in 1.39 secs
Running `target/debug/diesel-fts`
(1, -0.000001375)
Process finished with exit code 0
Currently search uses a simple
LIKE"%query%"
for queries. We should switch to full text search so that search works better. It will also be needed for implementing forte-music/schema#51 when it lands.There doesn't seem to be SQlite full text search support in diesel. Here are some issues I've encountered while looking into this.
bm25
which takes a table as an argument be declared in diesel?The text was updated successfully, but these errors were encountered: