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 Details

    • WrappingFormatter

      public WrappingFormatter(String pre, String post)
  • Method Details

    • highlightTerm

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