I have a couple of situations where I have a list of products and I want to display the most similar products to the article in question. How in a lot of situations there is no commonality between the article and any product or there is not enough products to fill the list. In this case I just want to display any product.
This modification attached changes the select to instead of being a filter it adds an embedded select to give a count of the number of terms in common between the argument and the row. This then changes the sort to allow you to sort by the number of terms in common and returns a list of products which are most similar by term to not similar at all.
I usually couple this with the random sort so that it would pick up different products.
Needs work
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.