Skip to Main Content

Return only those hits which match 3 or more keywords in search string

Andrew TulleyApr 7 2010 — edited Apr 7 2010
I have created a Context Multi Column index which works as expected.

In my application, I would like to be able to search using the following (or similar) string:

"man dog cat stick tree fetch"

And I would like this to return only those results which contain 3 or more of the words. That is to say, any result which contained "man" and "dog" and "stick" would be a match but results which contained only "fetch" and "dog" would not.

Can anyone think of a way of creating such functionality?

Thanks very much in advance for any suggestions,

Andy
Comments
Post Details
Added on Apr 7 2010
4 comments
1,394 views