lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "H. H. Bergman" <>
Subject Highlighter and HTML tags
Date Tue, 10 Aug 2004 11:16:43 GMT

I'm using lucene 1.4 and the Highlighter package from the sandbox.
When the search results are clicked I want to show the original (HTML)
document with highlighting. It seems to work fine, except for one annoying
detail: It also tries to 'highlight' strings that are part of a tag, such
as the href contents in a link. So the user is sometimes presented with
incorrect HTML.
Is there a way to stop the highlighter from highlighting strings inside
HTML tags?


Hennus Bergman

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

View raw message