On 6/21/06, Marcus Crafter <[EMAIL PROTECTED]> wrote:
> David Balmain wrote:
> > On 6/13/06, Marcus Crafter <[EMAIL PROTECTED]> wrote:
> > 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.
>
> Hi David,
>
> Thanks for your response.
>
> I noticed in a previous post you referenced the lucene highlighter and
> have already started porting it to Ferret. I'm already quite a ways
> along and have got the first 3 test cases passing properly (ie. simple
> and fuzzy fragments) and will continue with getting the rest of the test
> cases to work.
>
> Hopefully the API changes don't break too much then :)
>
> I'll post the code once it's all working, hopefully within the next
> days.
>
> Cheers,
>
> Marcus

That'd be great. The new API shouldn't be too hard to adjust to. I'll
be implementing the highlighter in C rather than in Ruby so I'll be
interested to see how you go with it.

The main difference in the API is that you won't specify the store,
index and term_vector parameters per document field any more. This
option will still be available but the behaviour will be slightly
different. I'll go into more detail later.

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

Reply via email to