I've actually been working on updating documentation for TS v3 over the last 24 
hours… though the changes are not online yet (as they're not complete).

The excerpts method isn't added to search results by default, but it's easily 
enabled:

  search = MyModel.search 'phrase'
  search.context[:panes] << ThinkingSphinx::Panes::ExcerptsPane
  search.first.excerpts

Cheers

-- 
Pat

On 30/03/2013, at 1:39 PM, hipertracker wrote:

> How to use excerpts in TS3? http://pat.github.com/ts/en/excerpts.html is old 
> and does not work in newer TS3.
> 
> Thinking Sphinx 2.0.11:
> 
> MyModel.search('phrase').first.excerpts 
> # => #<ThinkingSphinx::Excerpter:0x3fd79290348c>
> 
> Thinking Sphinx 3.0.2:
> 
> MyModel.search('phrase').first.excerpts
> NoMethodError: undefined method `excerpts' for #<Verse:0x007fa5dde723d8>
> 
> --
> JZ
> 
> -- 
> 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?hl=en.
> 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to