You can obtain the raw Sphinx results like so:

 Table.search('"fiction hardcover 2011"/1', :match_mode => :extended).results

Have a look through what's there, see if it gives you the information you need.

Cheers

-- 
Pat

On 30/04/2012, at 8:39 AM, senthil kumar wrote:

>>>>> and stats on each keyword in the search (how many documents matched, how 
>>>>> many matches across all matching documents).
> 
> Assumption: All set- good to go.
> 
> Here's an example search term. "fiction hardcover 2011"
> 
> Im querying this "Table",
> 
> id | title
> 1| literature and fiction
> 2| arts
> 3| photography
> 
> This is my query,
> 
> Table.search '"fiction hardcover 2011"/1', :match_mode => :extended
> 
> What I want?
> 
> For the above query, the result would be " 1 | literature and fiction
> ", but the sub-search term "fiction" was the key(by sphinx) used to
> fetch "literature and fiction".
> 
> Will that sub search term which matched a document be returned by
> sphinx. Or how do i access it via thinking_sphinx?
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Thinking Sphinx" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/thinking-sphinx?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en.

Reply via email to