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
Improve Search User API #944
Comments
ping @Akronix Feel free to update the issue with further requirements. |
How about fuzzy search? |
So this was possible with MongoDB regexp queries but the issue was that they weren't relying on indices and thus potentially very slow — is that correct @mrkvon ? I wonder if we could do 2nd expensive query with regexp if first one doesn't yield results?
I agree that's how it should work ideally. Great if it's |
Sounds like premature scaling.
How slow is a regexp search really?
How many searches do we expect on a daily basis?
…On Wed, Jan 2, 2019 at 3:51 PM Mikael Korpela ***@***.***> wrote:
Searching for "Abe" should return all instances of Abel
So this was possible with MongoDB regexp queries but the issue was that
they weren't relying on indices and thus very slow — is that correct
@mrkvon <https://github.com/mrkvon> ?
I wonder if we could do 2nd expensive query with regexp if first one
doesn't yeld results?
And better, searching for "Avel" (similar names) should find "Abel" as
well...
I agree that's how it should work ideally. Great if it's easy and
performant enough with MongoDB Indices but I suspect it won't be either.
:-( Investing time and maintenance energy in something like ElasticSearch
at this point probably isn't worth the effort on the other hand?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#944 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADVyPJ3cOErH9gNMVHt9OEZqgmicZu9ks5u_OOHgaJpZM4ZKWUU>
.
|
Yep, that's a valid point. If someone whips up a PR I'm happy to help to measure with production data (~34K users). |
The admin search I've been working on works pretty well with 34k users -
it's quite crude but does the job well.
#960
…On Wed, Jan 2, 2019 at 3:57 PM Mikael Korpela ***@***.***> wrote:
Yep, that's a valid point. If someone whips up a PR I'm happy to help to
measure with production data (~34K users).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#944 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADVyBOrfcN-c6O96d6EeQRi_Yz2MRfUks5u_OTtgaJpZM4ZKWUU>
.
|
I believe the main issue is being a potential vector of DoS attack. Not the slowness on its own. Also, unlike a search using indices, this will get worse as the amount of members grows. |
Yes, we already do that for the whole It's configured in Nginx. |
Then go on with the regex. Just make a restrictive rate limit and be aware that it's a temporary solution which is not scalable as the amount of members grows. https://docs.mongodb.com/manual/reference/operator/query/regex/#index-use Some case-sensitive search (i.e. Or we can migrate to a database which supports more option. 😅 👎 |
Good discussion. I'd go ahead with regexp. |
Yep and yep. 👍 We can deploy it as such to prod and follow up with regexp version but it's not urgent; we have something that already works. |
This issue is marked as unloved because it has not had any activity for 180 days. It doesn't mean it's not important, so please remove the unloved label if you like it, or add a comment saying what it means to you :) If this was a bug, maybe you can test to see if this is still an issue? However, if you just leave it like this, I'll close it in 14 days to help keep your issues tidy! Thanks! |
Follow up of #531.
Improve /api/users?search=string
improve search via usernames; figure out how dots, dashes etc. are treated by text indexit is working fine for periods, hyphen and underscores. If you put period or hyphen into the search it works the same like a space
The text was updated successfully, but these errors were encountered: