com.atlassian.confluence.search.summary
Class WrappingFormatter

java.lang.Object
  extended by com.atlassian.confluence.search.summary.WrappingFormatter
All Implemented Interfaces:
org.apache.lucene.search.highlight.Formatter

public class WrappingFormatter
extends java.lang.Object
implements org.apache.lucene.search.highlight.Formatter

A highlight formatter that wraps the term with two strings, before and after.


Constructor Summary
WrappingFormatter(java.lang.String pre, java.lang.String post)
           
 
Method Summary
 java.lang.String highlightTerm(java.lang.String originalText, org.apache.lucene.search.highlight.TokenGroup tokenGroup)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrappingFormatter

public WrappingFormatter(java.lang.String pre,
                         java.lang.String post)
Method Detail

highlightTerm

public java.lang.String highlightTerm(java.lang.String originalText,
                                      org.apache.lucene.search.highlight.TokenGroup tokenGroup)
Specified by:
highlightTerm in interface org.apache.lucene.search.highlight.Formatter


Copyright © 2003-2009 Atlassian Pty Ltd. All Rights Reserved.