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?
to your account
Right now the _search= argument searches across all fields in a full-text index, for example:
SQLite FTS also supports searches within a specified field, for example:
select rowid, * from Film_Locations_in_San_Francisco
where rowid in (
select rowid from [Film_Locations_in_San_Francisco_fts]
where [Locations] match :search
) order by rowid limit 101
The _search= parameter could be extended to support this using _search_colname=.
This should also be able to support columns with spaces and special characters in their names, something like this:
The text was updated successfully, but these errors were encountered:
Unit tests for _search= feature, refs #237
Documented here: http://datasette.readthedocs.io/en/latest/json_api.html#special-table-arguments
Sorry, something went wrong.
datasette publish now ../datasettes/san-francisco/sf-film-locations.db --branch=master --name datasette-column-search-demo
No branches or pull requests