When using standard drupal search on our site, searching for the phrase "horn of africa" yields different results for anon and admin users. Anon users get no results, admin users get the expected results.
When searching for the phrase "horn africa" anon and admin users get the same exact results.
It seems to just be the stop word "of". The stop words "and" and "the" work as expected (anon and admin users get the same results).
Anon users have permission to search most content on the site.
Comments
Comment #1
firstlut commentedHi, pearlbear! I'm having trouble reproducing this on a test site.
I'm helping out on office hours, and xjm, the team leader, suggested it might be a clash with a node access module of some kind. Do you have any installed on your site?
Comment #2
hanpersand commentedHi, I'm another dev on that site. We're not using any node access modules. Let us know what else we can give you to help sort this out. Thank you!
Comment #3
xjmActually, I just tried this myself and I was able to reproduce it. Writing a test for it now.
Comment #4
mattkoltermann commentedHi, I'm the admin of that site :)
We are using custom_search, if that helps.
You can test-out what happens as an anonymous user at http://www.actionagainsthunger.org/search.
Comment #5
xjmCrosspost strikes again.
Comment #6
xjmOkay, I am only able to reproduce this with a node access module enabled, and only with an old test site in 7.7. It is not reproducible with just 7.x or 8.x that I've been able to find. Can you provide steps to reproduce from a clean install?
Edit: It really seems to me that this could have been caused by #1112854: Subqueries use wrong arguments, but that was fixed in 7.8. Are you sure you aren't running 7.7? Can you confirm whether it happens in 7.9?
Comment #7
Anonymous (not verified) commentedWe did a core upgrade, and it seemed to solve the problem.