lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominator" <>
Subject Re: New Open Source XML Highlighter
Date Tue, 22 Oct 2002 07:23:35 GMT
Can it also be done on html? pdf would also be nice :) I know, I ask to much

"Ian Dallas" <> wrote in message
> I've just released an open source highlighter for XML documents, written
> Java, that works great for Lucene search results. You can download a copy
> The program uses regular expressions to search a set of DOM nodes and
> transparently handles highlighting matches that span multiple elements.
> For example, if you had:
> <LINE>I am as vigilant</LINE>
> <LINE>as a cat to steal cream</LINE>
> You could extract just the <LINE> nodes and the highlighter would
> match the phrase "vigilant as a cat".
> Highlight events are passed to a user defined highlighter for processing,
> and events are generated for each node affected, which makes it easy to
> avoid problems with interleaving tags. For example, the
> XMLHighlightListenerImpl class included in the release inserts "<B>" tags
> around highlighted text, which would produce:
> <LINE>I am as <B>vigilant</B></LINE>
> <LINE><B>as a cat</B> to steal cream</LINE>
> The current version is 0.8. I'm hoping to release version 1.0 in about a
> month, so if anyone has any feature requests, bug reports, etc, I'd love
> hear them.
> Thanks,
> --ian /

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message