On 6/13/06, Marcus Crafter <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> Hope all is going well. Was just wondering if anyone has implemented a
> grep style output page of hits using Ferret as the index/query engine?
>
> Any thoughts about how best to implement it? The previous thread
> discussess highlighting - would that be the best approach to follow or
> is there a better way?
>
> Cheers,
>
> Marcus
Hi Marcus,
If you can read java the best way would be to check out the
highlighter in Apache Lucene and porting that code to Ruby. You can
see the highlighter module here;
http://svn.apache.org/viewvc/lucene/java/trunk/contrib/
I'm going to do this myself eventually but you'll have to do it
yourself if you need it soon. Before you put too much work into it
though, be warned that there are possible major Ferret API changes
ahead.
Cheers,
Dave
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk