org.apache.jackrabbit.core.query.lucene
Interface HighlightingExcerptProvider
- All Superinterfaces:
- ExcerptProvider
- All Known Implementing Classes:
- AbstractExcerpt, DefaultHTMLExcerpt, DefaultXMLExcerpt, WeightedHTMLExcerpt, WeightedXMLExcerpt
public interface HighlightingExcerptProvider
- extends ExcerptProvider
HighlightingExcerptProvider
extends the
ExcerptProvider
interface with a method that highlights matching
terms in arbitrary text.
highlight
String highlight(String text)
throws IOException
- Highlights the matching terms in the passed
text
.
- Parameters:
text
- the input text.
- Returns:
- the highlighted text.
- Throws:
IOException
- if an error occurs while highlighting the text.
Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.