Hi Sjors
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
On 01/07/2011, at 8:09 AM, Sjors wrote:
> I was wondering if this problem is still around or if I'm doing
> something wrong. In 2009 Pat wrote [0] that you can't get excerpts on
> partial matches, that this was due to a "bug" in Sphinx itself and
> that this might get fixed in the near future.
>
> I'm using the latest version of Sphinx from SVN and thinking-sphinx
> 2.0.5. I can get excerpts on full word matches, but not on partial
> word matches.
>
> Cheers,
>
> Sjors
>
> [0]
> http://groups.google.com/group/thinking-sphinx/browse_thread/thread/b9c0028c838586f4/987597b694b2277d?lnk=gst&q=partial#987597b694b2277d
>
> --
> 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.