Hi all,
As far as I understand, Lucene has a paragraph highlighter. I have developed based on the KMP search algorithm, in my working code, a term highlighter. If it is really of use to anybody, then he can share the code.
Regards,
Jitender