When "OR" is set for "Search operator" it works great with the core search generating something like this in URL:
http://website/search/node/lorem%20OR%20ipsum%20type%3Ablog
But I wanted to use Views to generate nicer result page, so I've created custom search path search/blog?term=[key] and a landing Views page that correctly accepts the custom path together with the entered key as an argument. Unfortunately, the "OR" operator set in the modules settings does not apply to [key] and it is always served to Views as the whole strong. As a result the URL like http://website/search/blog?term=lorem%20impsum returns an empty page.
The Views page, however, is happy with URLs like http://website/search/blog?term=lorem+OR+ipsum or http://website/search/blog?term=lorem%20OR%20ipsum to correctly return the expected results.
Would the module maintainers consider injecting OR operator (if set in the modules's settings, of course) between all the words of a search string before serving it to the [key]?
Comments
Comment #2
nickonom commentedI know I am not supposed to hack the module, however, we don't have time for the project we are working on and as a temporary measure before the module maintainers give their decision, I've changed the following function in the module:
and it works fine for us for now.
Comment #3
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.
Thanks!