On 9/5/06, Jean-Christophe Michel <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Le 4 sept. 06, à 01:48, David Balmain a écrit :
> >     index.search_each(query) do |doc_id, score|
> >         puts index.highlight(query, doc_id, :field =>
> > :my_field).join(", ")
> >     end
>
> Tried it, I get only nil for index.highlight :/

Can you give me an example of what doesn't work? Something like this;

    require 'rubygems'
    require 'ferret'

    i = Ferret::I.new(:default_field => :content)
    i << {:content => "here is the content I want to highlight."}

    puts i.highlight("content", 0)

Cheers,
Dave
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to