Hi Andrew

Unfortunately, Sphinx doesn't supply any information on which fields  
provided the match, so I think your brute-force solution is the best  
approach - at least, I can't think of anything better at the moment.

If you can wrap it up into something re-usable, I'm sure others on the  
list would be interested.

Cheers

-- 
Pat

On 22/04/2009, at 8:08 AM, Andrew wrote:

>
> My users want a column on the search results page containing the field
> or fields in the index that produced a hit.  I couldn't find anything
> in the TS docs about this, but I bet this problem has a more formal
> name that I don't know, and I bet someone on here knows it.  I wanted
> to see if anyone had come up with an elegant solution to this
> problem.  Assuming it's not supported by sphinx / TS, my brute-force
> solution is to query each field of the returned search results and
> return any column / property that matches the query.  Is there an
> easier way?
> >


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