search with match any - proper order

Hi all,

I know this has been discussed before and mostly been fixed with quick search.

Problem :

I have included a hidden var in top search form

this means by default search result will include any of the search keywords


If I search with “digital camera”. I will get all the products containing “digital”, “camera” or “digital and camera”.

The search result is good, problem is with the order. I would like the products having both digital and camera keywords to show up first.

Is this possible without too much complexity.

All I could think of was search three times and then Union - ing them but that didn't sound like a good idea.