Hi there
I've actually been working on excerpts over the last couple of days -
I'll be releasing the code sometime on Saturday (as I promised a while
ago it would be part of my talk at Rails Underground). So if you can
hold on until then, that'd be great.
For the record though, there's a separate excerpts method for the
Riddle client, which takes an array of strings that you want keywords
highlighted in (:docs option), the words to be highlighted (joined
together as a single string for the :words option), and the index name
to borrow settings from (:index option).
Cheers
--
Pat
On 19/07/2009, at 6:03 PM, jou00jou wrote:
>
> Hi everyone,
> I would like to use excerpts with my rails app but since Thinking
> Sphinx doesn't support that feature yet I am trying to use Riddle the
> Sphinx API to make use of this very important feature Sphinx has. Can
> anybody point me to the right direction. I played with Riddle a little
> in the console and I know I can create a new class and use the query
> method to search but I am stuck at the excerpts method.
>
> client = Riddle::Client.new
> result = client.query("Hello world")
> which returns some hash
>
> I appreciate any advice.
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---