I think I understand what you want to do, and I don't think Sphinx is the right 
tool for it, I'm afraid.

On 18/10/2013, at 2:14 AM, 1 2 <[email protected]> wrote:

> This is an option, but I'm afraid it will be too slow.
> Is it possible to find common words in two documents with Sphinx?
> If yes, I can use a following approach:
> 1) Build an index over document with keywords.
> 2) Add incoming document to the index.
> 3) Find common words.
> 4) Delete incoming document from index, add next document.
> etc
> Is it possible? Maybe Sphinx is a wrong tool for doing it?
> 
> 
> 
> 2013/10/17 Pat Allan <[email protected]>
> If you're searching on a single record, then the meta information in a search 
> will have the details on which keywords have matched… but they are across all 
> results, so if more than one document is matched, there's no way to 
> distinguish which keywords have matched which document.
> 
> The meta information is available via a method of the same name on the search 
> results object:
> 
>   Document.search('foo').meta
> 
> -- 
> Pat
> 
> On 17/10/2013, at 5:16 AM, Igor <[email protected]> wrote:
> 
>> 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.
> 
> 
> -- 
> 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.
> 
> 
> -- 
> 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.

-- 
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.

Reply via email to