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
Full text admin user search #3133
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3133 +/- ##
=======================================
Coverage 83.43% 83.44%
=======================================
Files 250 250
Lines 15593 15600 +7
Branches 2910 2910
=======================================
+ Hits 13010 13017 +7
Misses 1659 1659
Partials 924 924
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to remove the ability to search for users by domain, which is something I do from time to time. Is that a deliberate change or just a side effect of the way the index is constructed?
Just a side effect I hadn't noticed, hmm. Could translate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd be good to have the domain-only searching back, but happy for this to be merged as-is (with a ticket for the domain searching, maybe) if it needs to go out the door 🚪 👍
Have changed it to treat @ and . as spaces in both indexing and query, so a domain search should work (possible false positives now I guess, e.g. a search for "gmail.com" would match "gmail@example.com" but that doesn't seem too bad. Changed the index to wrap I guess we could index email parts (with @ and . as space) plus the whole email as well, plus domain and whole local part, and then not do translation on query which would then sort of work? But meh. |
One "bug" fix - forcing postgresql to use the index in situations where it does not want to.
And then adding full text search to the user admin search as well. Plus side - is quicker. Down side - can no longer search for part of name/phone/email only whole words. Perhaps alternative solution would be to search whole fields first (for exact match) and only do ilike search if no results to that. Or just say is okay as is. Review the first bug commit regardless please :)
[skip changelog]