Closed emilgoldsmith closed 5 years ago
@emilgoldsmith Apparently this is a problem only on the staging server? Just checked the actual website and search there is case-insenstive. If you can confirm, we can close the issue.
Can you give me an example of it being case insensitive on the website?
Hmm okay I can see it looks pretty good on the main website. I still think we should try and understand what's going on the staging server though? As it indicates trouble in the code though it may not be what I thought at first. I also think I just crashed the staging server by trying to search on it?
Attached are 3 images which show different cases for the same query. Results returned are consistentl.
Yup, you just managed to crash it. I'll take a look and see if I can figure out why it breaks - but the problem for now is only staging server specific?
Yeah I actually did a strikingly similar test haha, just with football FOOTBALL fOotBall or something like that haha. And I got it consistent too.
It's definitely a problem that should be figured out in theory. But we have a lot of pretty critical bugs / vulnerabilities / lacking features right now so I'll leave it up to you to prioritize where your time is best spent. I can close this issue for now anyway. If you want you can create a new one with the actual issue.
Expected Behavior
searching for Lorem should also find cases of lorem and vice versa
Current Behavior
on staging I searched for
title
and it didn't find any of the articles that are ALL namedTITLE-XX
Possible Solution
Probably we can just add LOWER somewhere in the SQL statement? http://www.sqlinfo.net/mysql/mysql_function_upper_lower.php
Steps to Reproduce (for bugs)
title
on stagingTITLE
on staging