Class HtmlFormatter

All Implemented Interfaces:
SolrFormatter, NamedListInitializedPlugin

public class HtmlFormatter extends HighlightingPluginBase implements SolrFormatter
Use the SimpleHTMLFormatter
  • Constructor Details

    • HtmlFormatter

      public HtmlFormatter()
  • Method Details

    • getFormatter

      public org.apache.lucene.search.highlight.Formatter getFormatter(String fieldName, org.apache.solr.common.params.SolrParams params)
      Description copied from interface: SolrFormatter
      Return a Formatter appropriate for this field.
      Specified by:
      getFormatter in interface SolrFormatter
      Parameters:
      fieldName - The name of the field
      params - The params controlling Highlighting
      Returns:
      An appropriate Formatter