Class WrappingFormatter
- java.lang.Object
-
- com.atlassian.confluence.impl.search.summary.WrappingFormatter
-
- All Implemented Interfaces:
org.apache.lucene.search.highlight.Formatter
public class WrappingFormatter extends Object implements org.apache.lucene.search.highlight.Formatter
A highlight formatter that wraps the term with two strings, before and after.
-
-
Constructor Summary
Constructors Constructor Description WrappingFormatter(String pre, String post)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
highlightTerm(String originalText, org.apache.lucene.search.highlight.TokenGroup tokenGroup)
-