Skip to content
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

Documentation Bug: URL Syntax at SQLite Full-Text Search with Wildcards #2372

Open
kj-9 opened this issue Jul 23, 2024 · 0 comments
Open

Documentation Bug: URL Syntax at SQLite Full-Text Search with Wildcards #2372

kj-9 opened this issue Jul 23, 2024 · 0 comments

Comments

@kj-9
Copy link

kj-9 commented Jul 23, 2024

There appears to be an error in the URL syntax example for SQLite full-text search using wildcards in the "The table page and table view API" section of the Datasette documentation.

The current documentation states:

SQLite full-text search supports wildcards. This means you can easily implement prefix auto-complete by including an asterisk at the end of the search term - for example:
/dbname/tablename/?_search=rob*

However, it should not be separated by /. The correct syntax should be:
/dbname/tablename?_search=rob*

the following URL (based on the current documentation) returns a 404 error:
fara.datasettes.com/fara/FARA_All_ShortForms/_search=manafort*

Whereas this URL works correctly and displays search results:
fara.datasettes.com/fara/FARA_All_ShortForms?_search=manafort*

I suggest updating the documentation to show the correct URL syntax to prevent user confusion. Could you please review and confirm this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant