Similar sort without filter

Created on 23 October 2011, about 13 years ago
Updated 19 April 2023, over 1 year ago

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.

✨ Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia gordon Melbourne

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024