Package org.apache.solr.highlight
Class HtmlFormatter
java.lang.Object
org.apache.solr.highlight.HighlightingPluginBase
org.apache.solr.highlight.HtmlFormatter
- All Implemented Interfaces:
SolrFormatter,NamedListInitializedPlugin
Use the
SimpleHTMLFormatter-
Field Summary
Fields inherited from class org.apache.solr.highlight.HighlightingPluginBase
defaults, solrMetricsContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.search.highlight.FormattergetFormatter(String fieldName, org.apache.solr.common.params.SolrParams params) Return aFormatterappropriate for this field.Methods inherited from class org.apache.solr.highlight.HighlightingPluginBase
initMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.solr.util.plugin.NamedListInitializedPlugin
init
-
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:SolrFormatterReturn aFormatterappropriate for this field.- Specified by:
getFormatterin interfaceSolrFormatter- Parameters:
fieldName- The name of the fieldparams- The params controlling Highlighting- Returns:
- An appropriate
Formatter
-