-
-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sqlite-utils search command #192
Comments
Relevant example using a SQLite CTE: simonw/datasette#268 (comment) CTEs were added in SQLite 3.8.3 in 2014-02-03 so they should be safe to use. If someone tries to run |
Just realized there's a problem with the SQL I am using here: joining to get sqlite-utils/sqlite_utils/db.py Lines 1303 to 1319 in c8a900d
|
I could depend on my Or I could say that only |
FTS5 was added in SQLite 3.9.0 in 2015-10-14 - so about a year after CTEs, which means CTEs will always be safe to use with FTS5 queries. |
I want This means I need to be able to introspect and tell if a table is FTS4 or FTS5. |
This is a bit surprising:
I requested just |
Also that order looks incorrect. It looks like most relevant came back last, not first. |
I'm going to have it only output the exact |
This looks pretty good now!
|
A command that knows how to run a search against a FTS enabled table and return results ranked by relevance.
The text was updated successfully, but these errors were encountered: