com.atlassian.confluence.search.summary
Class WrappingFormatter
java.lang.Object
com.atlassian.confluence.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WrappingFormatter
public WrappingFormatter(String pre,
String post)
highlightTerm
public String highlightTerm(String originalText,
org.apache.lucene.search.highlight.TokenGroup tokenGroup)
- Specified by:
highlightTerm
in interface org.apache.lucene.search.highlight.Formatter
Copyright © 2003-2013 Atlassian. All Rights Reserved.