Class HtmlEncoder

All Implemented Interfaces:
SolrEncoder, NamedListInitializedPlugin

public class HtmlEncoder extends HighlightingPluginBase implements SolrEncoder
Use the SimpleHTMLEncoder
  • Constructor Details

    • HtmlEncoder

      public HtmlEncoder()
  • Method Details

    • getEncoder

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