org.apache.lucene.search.highlight

Class SimpleHTMLFormatter

public class SimpleHTMLFormatter extends Object implements Formatter

Simple {@link Formatter} implementation to highlight terms with a pre and post tag

Author: MAHarwood

Constructor Summary
SimpleHTMLFormatter(String preTag, String postTag)
SimpleHTMLFormatter()
Default constructor uses HTML: <B> tags to markup terms
Method Summary
StringhighlightTerm(String originalText, TokenGroup tokenGroup)

Constructor Detail

SimpleHTMLFormatter

public SimpleHTMLFormatter(String preTag, String postTag)

SimpleHTMLFormatter

public SimpleHTMLFormatter()
Default constructor uses HTML: <B> tags to markup terms

Method Detail

highlightTerm

public String highlightTerm(String originalText, TokenGroup tokenGroup)
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.