Class SimpleHTMLFormatter

java.lang.Object
ubic.gemma.core.search.lucene.SimpleHTMLFormatter
All Implemented Interfaces:
org.apache.lucene.search.highlight.Formatter

public class SimpleHTMLFormatter extends Object implements org.apache.lucene.search.highlight.Formatter
A safer substitute for SimpleHTMLFormatter that escape existing HTML tags and use lowercase <b> tags.
Author:
poirigui
  • Constructor Details

    • SimpleHTMLFormatter

      public SimpleHTMLFormatter()
  • 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