How to select more than 2 matches?

marietokyo

New Member
I'm having trouble thinking this one out. Input is greatly appreciated. Content is always changing, but here is an example of what I'm trying to do.\[quote\] STORY 1 (keywords: 5, 9, 17, 18, 25, 22) STORY 2 (keywords: 5, 25, 16, 19, 32) STORY 3 (keywords: 1, 9, 17) STORY 4 (keywords: 25, 22, 16, 3, 17)\[/quote\]Now, I'm querying based on STORY 1. I'd like to output any stories that share >= 2 keywords with STORY 1. For this example, my code should output:\[quote\] STORY 1 STORY 2 STORY 4\[/quote\]STORY 2 shares keywords 5, 25STORY 4 shares keywords 25, 22, 17STORY 3 is not outputted simply because it only shares 1 keyword with STORY 1Any ideas?
 
Back
Top