-
-
Notifications
You must be signed in to change notification settings - Fork 256
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
Search for exact phrases not working #1340
Comments
How many entries do you have? I think the search switches back to a "LIKE" search. |
Further comment: I just realized that the relation between the search words is actually a logical "OR" and not an "AND". So "suche irgendwas" actually results in the same output. |
This is the search code for MySQL: https://github.com/thorsten/phpMyFAQ/blob/2.9/phpmyfaq/inc/PMF/Search/Database/Mysqli.php#L86-L125 If the first query does not return anything, a LIKE search will be executed. |
Thanks for the clarification, I was not aware of that. However, in my case two results are found and returned immediately. No LIKE search is executed, see output:
So my problem is not connected to the LIKE search. |
Hello!
The search for exact phrases using quotes ("exact phrase") is not working in the current version (2.9.9). The search strings seems to be converted to 'exact AND phrase'.
See screenshot:
The first result should not be found as it does not contain the exact search string "die Suche nicht", but only the string "die Suche mit Anführungszeichen nicht".
I did some research and this issue seems to be related to the escaping, see
https://stackoverflow.com/questions/16674139/php-mysql-boolean-full-text-searches-exact-string-operator-gives-differ
Unfortunately, my knowledge of PHP / MySQL is rather limited, so I am unable to fix the problem myself, but maybe this is helpful for you!
The text was updated successfully, but these errors were encountered: