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
fts search on a column doesn't work anymore due to escape_fts #759
Comments
This was a deliberate change from #651. The
If you want to use advanced search syntax on those pages you can do so using the Example: https://latest.datasette.io/fixtures/searchable?_search=text1:dog&_searchmode=raw |
Thank you. Now it's ok with the url http://localhost:8001/index/summary?_search=language%3Aeng&_sort=title&_searchmode=raw But I'm not able to manage it in the metadata file. Here is mine (note that the sort column is taken into account)
Any idea ? |
I added |
Hi and first, thank you for this awesome work you make with this projet.
On a db indexed in full text search, I can't query on indexed column anymore.
This request "cauvin language:ita": is running smoothly on a old version of datasette but not on the current version.
Compare the current version query
select uuid, title, authors, year, series, language, formats, publisher, tags, identifiers from summary where rowid in (select rowid from summary_fts where summary_fts match escape_fts(:search)) order by uuid limit 101
To an older version:
select title, authors, series, uuid, language, identifiers, tags, publisher, formats, year, links from summary where rowid in (select rowid from summary_fts where summary_fts match :search) order by uuid limit 101
language is a searchable column but now the search string is known as "cauvin language:ita" literally as a search term. columns are not parsed.
The text was updated successfully, but these errors were encountered: