On 1/3/07 5:13 PM, "Mike Klaas" <[EMAIL PROTECTED]> wrote:

> Generally, we should strive for a high-quality out-of-the-box
> highlighting in Solr.  That might involve making things like better
> fragmenters and a few other tricks(*) the default setup, and providing
> a "quick & dirty" setting for speed demons.

I've implemented this before, once in Python and once in C, so I'd
be glad to take a look at it. I'm not sure I have time to do a lot
of implementation, but I'd sure be glad to help.

We tried several APIs and decided that the best was an array of
String with the odd elements containing the strings that needed
highlighting. That made it really easy to step through and wrap
highlighted stuff with the right markup, while properly escaping
any angle brackets in the source text.

I'm not sure how easy it is to handle that format in XSLT, but
it might be worth it. Embedded highlight markup just doesn't work.

wunder
-- 
Walter Underwood
Search Guru, Netflix


Reply via email to