I have a large set of keywords and constantly incoming documents.
What I want is to set up a correspondence between this keywords and
documents:
document id | keyword id
1 | 1
1 | 2
2 | 2
2 | 3
The most naive approach to this task is to build an index over a batch of
documents and then search for all keywords one by one.
But this is too slow.
More clever solution is to search several keywords in a time using MATCH
like this: MATCH ('keyword1|keyword2|...').
But the problem is that I cannot find a way to determine in which document
a keyword was found.
Is there any way to do this?
Is there any other way to find correspondence?
Any hints or suggestions?
Thanks in advance.
--
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/groups/opt_out.