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.
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)
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:
STORY 1
STORY 2
STORY 4
STORY 2 shares keywords 5, 25
STORY 4 shares keywords 25, 22, 17
STORY 3 is not outputted simply because it only shares 1 keyword with STORY 1
Any ideas?