public class SearchHTMLExcerpt
Provides an HTML excerpt highlighting the searched term. By default it will strip all HTML tags and jcr identifiers which might have been indexed.
Suppose you were searching for "foo" and the text found containing it is something like
<p>This is an "excerpt" <em>highlighting</em> the word foo deadbeef-face-babe-cafe-babecafebabe...
it produces a result like the following which can then be used e.g. in a search result page.
<span class="excerpt-fragment">This is an excerpt highlighting the word <strong>foo</strong>...</span>
Fields inherited from class org.apache.jackrabbit.core.query.lucene.AbstractExcerpt
Fields inherited from interface org.apache.jackrabbit.core.query.lucene.ExcerptProvider