FYI, I made an update to this (I'm the author) to handle span queries. I
uploaded the updated code to the same bugzilla link. The code doesn't treat
span queries like phrases - it just highlights the terms individually (if
someone can find a way to highlight it as a phrase, feel free to update it
(see
the Lucene website for a link) and then add your code to the newly
created issue.
This sounds like a very valuable contribution!
Erik
On Jun 24, 2005, at 4:46 PM, Bohl, David wrote:
> I created a lucene query highlighter (borrowing some code from the
> one in
> the sa
I created a lucene query highlighter (borrowing some code from the one in
the sandbox) that my company is using. It better handles phrase queries,
doesn't break HTML entities, and has the ability to either highlight terms
in an entire document or to highlight fragments from the document. I would