I would like to use Sphinx for many, many matches. I cited questions and tags in StackOverflow for illustration.
A question can be associated with many tags and vice versa for a tag.
So, in mysql I have 3 tables: question, tag, question_tag.
I would like to find questions that contain as many tags in the "java", "sphinx", "mysql", "hibernate" sets as possible. Thus, the result may arise with questions with 3 matches, 2 matches or 1 match.
I am currently creating a field that combines all of these tags with a space and is looking for sphinx in this field. But that sounds silly and creates a lot of overhead when adding and removing tags. There will be some smarter way, right?
source share