This is now possible in Sphinx - and should be fine with Thinking Sphinx provided you're using wildcards in your query. For example:
ThinkingSphinx.search('pow*').first.last_name #=> "Power"
ThinkingSphinx.search('pow*').first.excerpts.last_name #=> "<span class=\"match\">Power</span>"
How are you using it where it's not working?
--
Pat
> --
> You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group.
> To post to this group, send email to thinkin...@googlegroups.com.
> To unsubscribe from this group, send email to thinking-sphi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
>
Cheers
--
Pat
Model.search 'foo',
:excerpt_options => {:before_match => '<em>', :after_match => '</em>'}
Just make those empty strings if you don't want any highlighting of matches at all.
--
Pat
On 13/10/2012, at 10:28 AM, Taiwo wrote:
> were u able to remove the span tags that show up when using excertps??
>
> Thanks
>
> taiwo
> To view this discussion on the web visit https://groups.google.com/d/msg/thinking-sphinx/-/ypImiQ5023wJ.
To unsubscribe from this group and stop receiving emails from it, send an email to thinking-sphi...@googlegroups.com.