fix: Various fixes for the search#394
Merged
marien-probesys merged 3 commits into2.4from Feb 13, 2026
Merged
Conversation
The individual terms of a search weren't correctly splitted. For instance, the term "foo-bar" was sanitized as a single string "foo bar", instead of being sanitized as two individual strings "foo" and "bar". It means that when we added the mandatory sign (+), the MariaDB boolean search string was returned as "+foo bar" instead of "+foo +bar".
MariDB indexes terms by removing the dots (.). It means that if we searched for a term containing a dot (as an email address), the search would return nothing.
Before, if an admin was looking for a recipient address, he must have to search for the exact email (e.g. "charlie@example.com"). However, he wasn't able to search for a part of the email (e.g. "example.com"). Now, we extract terms that contain a "@" and consider them as "potential email". We then search for user emails with a "LIKE" request instead of a "=". Thus, it allows to search "@example.com" for instance. The only requirement is to contain a "@".
ctresvaux
approved these changes
Feb 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related issue(s)
N/A
How to test manually
Reviewer checklist