Package org.apache.solr.highlight
Class HtmlFormatter
- java.lang.Object
-
- org.apache.solr.highlight.HighlightingPluginBase
-
- org.apache.solr.highlight.HtmlFormatter
-
- All Implemented Interfaces:
AutoCloseable
,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, metricNames, numRequests, solrMetricsContext
-
-
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, org.apache.solr.common.params.SolrParams params)
Return aFormatter
appropriate for this field.-
Methods inherited from class org.apache.solr.highlight.HighlightingPluginBase
getCategory, getName, getSolrMetricsContext, 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.util.plugin.NamedListInitializedPlugin
init
-
Methods inherited from interface org.apache.solr.core.SolrInfoBean
getCategory, getName
-
Methods inherited from interface org.apache.solr.metrics.SolrMetricProducer
close, getSolrMetricsContext, initializeMetrics
-
-
-
-
Method Detail
-
getFormatter
public org.apache.lucene.search.highlight.Formatter getFormatter(String fieldName, org.apache.solr.common.params.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
-
-