Search, filterByKeyword method - return only results containing ALL search terms?

Permalink
Working on modifying the core search block in 5.4.1.1. Added the fix to properly include multiple search terms. Currently the search returns results containing one of the keywords.

I need to limit results to only those pages that contain ALL of the keywords. As an alternative, an exact match for the entire phrase would also suffice.

Any ideas?

 
thebogdan replied on at Permalink Reply
thebogdan
I'm also looking for this functionality. A function filterByKeywords() is what I think needs to be modified, but I cannot locate it. Can you offer any help?

I actually need to always include an extra search parameter, hardcoded, so all search is keywords AND extra-parameter.