-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Advanced FTS queries not working in DB published using datasette-publish-now #22
Comments
I'm really confused by this one. Here's another Datasette running on Now which doesn't exhibit this bug: And yet yours, running here, does: https://my-database.now.sh/commissioniComunePalermo?sql=select+rowid+from+youtube_fts+where+youtube_fts+match+escape_fts(%27sedut*%27)&search=sedut%2A&_trace=1 |
I thought that maybe your table was FTS4 and the Datasette fixtures table was FTS5, but no - yours is FTS5 too according to the schema at the bottom of https://my-database.now.sh/commissioniComunePalermo/youtube_fts CREATE VIRTUAL TABLE [youtube_fts] USING FTS5 (
[#text], [commissione],
content=[youtube]
); |
The If you want to run a query that takes advantage of FTS syntax you would need to do so using either a completely custom SQL query or using the |
So: my recommendation is for you to use |
... or use the feature I forgot about, https://datasette.readthedocs.io/en/stable/json_api.html#special-table-arguments |
Hi @simonw and thank you.
But if I use Is it a bugged db?
Ok, me neither. But I see what is possible to do here by default and it's great. I can search:
I would like to use it to build my datasette website. How to have it? Thank you for this great tool |
I'm really confused by that example - I don't know why that's not working for you. Once we figure out what's wrong with that you can get advanced FTS working on your pages by adding |
Huh, here's another bug: I'm trying to download your SQLite database from https://my-database.now.sh/commissioniComunePalermo.db but my request is hanging. Eventually I get this error:
That's another |
Could you make a copy of your |
I'm attaching it here. Thank you |
Is there a way to add Thank you |
Hi,
in the sf-trees project, it's possible to use
*
,NEAR
,AND
, etc. In example the stringmelanoxylo*
.I have created my first datasette project, I have enabled full-text search, but I cannot use in example
*
: the query forvill*
(I have the word "villa" and "ville").I have enabled full-text running:
I have published it without any option using this command:
Thank you very much
The text was updated successfully, but these errors were encountered: