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

Switch to prefix search for bookmarks #741

Closed
wants to merge 1 commit into from

Conversation

rutkai
Copy link
Contributor

@rutkai rutkai commented Sep 25, 2023

Fixes #722.

It is not a 100% solution as I just added prefix matching, for pre- and postfix matching LIKE keyword would be needed, but that's a volume slower than MATCH.

@rutkai rutkai marked this pull request as draft September 25, 2023 21:46
@rutkai
Copy link
Contributor Author

rutkai commented Sep 27, 2023

It turned out that tests are failing because I managed to find a bug in mysql/mariadb while trying to find a solution for the original issue: https://jira.mariadb.org/browse/MDEV-21750

As it's a bug, I'm not sure an input validation would help (good duct tape, though).

@rutkai
Copy link
Contributor Author

rutkai commented Sep 27, 2023

As an alternative fix for the original issue: prefix matching (and many other features of full-text search) can be displayed on the UI as tooltip or help so the user would include it in his/her search when prefix match is needed.

@rutkai rutkai closed this Sep 27, 2023
@fmartingr
Copy link
Member

Hey @rutkai, thank you for taking the time to look at this issue and dump your findings here, it would prove useful the moment much needed improvements are made into search :)

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

Successfully merging this pull request may close these issues.

Search in readable content is unreliable
2 participants