Package org.apache.solr.highlight
Class HtmlFormatter
- java.lang.Object
-
- org.apache.solr.highlight.HighlightingPluginBase
-
- org.apache.solr.highlight.HtmlFormatter
-
- All Implemented Interfaces:
SolrInfoBean
,SolrFormatter
,SolrMetricProducer
,NamedListInitializedPlugin
public class HtmlFormatter extends HighlightingPluginBase implements SolrFormatter
Use theSimpleHTMLFormatter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoBean
SolrInfoBean.Category, SolrInfoBean.Group
-
-
Field Summary
-
Fields inherited from class org.apache.solr.highlight.HighlightingPluginBase
defaults, metricManager, metricNames, numRequests, registry, registryName
-
-
Constructor Summary
Constructors Constructor Description HtmlFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
Simple one or two line descriptionorg.apache.lucene.search.highlight.Formatter
getFormatter(String fieldName, SolrParams params)
Return aFormatter
appropriate for this field.-
Methods inherited from class org.apache.solr.highlight.HighlightingPluginBase
getCategory, getMetricNames, getMetricRegistry, getName, init, initializeMetrics
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.solr.highlight.SolrFormatter
init
-
Methods inherited from interface org.apache.solr.core.SolrInfoBean
getCategory, getMetricNames, getMetricRegistry, getMetricsSnapshot, getName, registerMetricName
-
-
-
-
Method Detail
-
getFormatter
public org.apache.lucene.search.highlight.Formatter getFormatter(String fieldName, SolrParams params)
Description copied from interface:SolrFormatter
Return aFormatter
appropriate for this field.- Specified by:
getFormatter
in interfaceSolrFormatter
- Parameters:
fieldName
- The name of the fieldparams
- The params controlling Highlighting- Returns:
- An appropriate
Formatter
-
getDescription
public String getDescription()
Description copied from interface:SolrInfoBean
Simple one or two line description- Specified by:
getDescription
in interfaceSolrInfoBean
- Specified by:
getDescription
in classHighlightingPluginBase
-
-