Interface HighlightingExcerptProvider
-
- All Superinterfaces:
ExcerptProvider
- All Known Implementing Classes:
AbstractExcerpt
,DefaultHTMLExcerpt
,DefaultXMLExcerpt
,WeightedHTMLExcerpt
,WeightedXMLExcerpt
public interface HighlightingExcerptProvider extends ExcerptProvider
HighlightingExcerptProvider
extends theExcerptProvider
interface with a method that highlights matching terms in arbitrary text.
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.core.query.lucene.ExcerptProvider
REP_EXCERPT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
highlight(String text)
Highlights the matching terms in the passedtext
.-
Methods inherited from interface org.apache.jackrabbit.core.query.lucene.ExcerptProvider
getExcerpt, init
-
-
-
-
Method Detail
-
highlight
String highlight(String text) throws IOException
Highlights the matching terms in the passedtext
.- Parameters:
text
- the input text.- Returns:
- the highlighted text.
- Throws:
IOException
- if an error occurs while highlighting the text.
-
-