Closed (outdated)
Project:
Custom Search
Version:
7.x-1.0
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Feb 2012 at 16:49 UTC
Updated:
21 Oct 2025 at 12:53 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
rliwma commentedComment #2
heddnI'm taking some liberty but a support request from over a year ago is probably
fixed or irrelevant. If you disagree, please reopen and provide more
details.
Comment #4
tz_ commentedWhile this may be an old question, I still wonder the same. Hours of googling and poring over code and admin interface has yielded no help. Switching from AND to OR would be very very helpful.
Comment #5
jdanthinne commentedComment #6
dtamajon commentedI agree... changing default behavior from AND to OR can be very helpful.
Comment #7
jdanthinne commentedCan you try this patch?
There's a new option in the Custom Search config to choose between AND and OR operator.
Comment #8
dtamajon commentedI have tested and it's working when using from the search block, but not in results page.
And if you include some words between ", then OR is included inside avoiding any match.
Additionally, maybe should need some work to clean OR when showing results because it's quite odd for a user that the words he entered has changed including 'OR' words in the middle.
Comment #9
jdanthinne commentedI have to override this form as well then…
Between what? What's the resulting search keywords?
Yes, it's just the default behavior of core Search module. I have to override that as well.
Comment #10
dtamajon commentedI mean, when you do a search like -->Drupal "Custom Search"<--, the resulting search keywords are -->Drupal OR "Custom OR Search"<--
Comment #12
loon commentedD7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.
Everyone can apply the patch above (not tested by the community) to their D7 projects.
If the issue remains relevant for D10+ versions, merge requests with proposed solutions for a new module version (D10+) are welcome in a new follow-up issue.
Thanks!