Package org.apache.solr.highlight
Class HtmlEncoder
- java.lang.Object
-
- org.apache.solr.highlight.HighlightingPluginBase
-
- org.apache.solr.highlight.HtmlEncoder
-
- All Implemented Interfaces:
AutoCloseable
,SolrInfoBean
,SolrEncoder
,SolrMetricProducer
,NamedListInitializedPlugin
public class HtmlEncoder extends HighlightingPluginBase implements SolrEncoder
Use theSimpleHTMLEncoder
-
-
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 HtmlEncoder()
-
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.Encoder
getEncoder(String fieldName, org.apache.solr.common.params.SolrParams params)
Return anEncoder
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
-
getEncoder
public org.apache.lucene.search.highlight.Encoder getEncoder(String fieldName, org.apache.solr.common.params.SolrParams params)
Description copied from interface:SolrEncoder
Return anEncoder
appropriate for this field.- Specified by:
getEncoder
in interfaceSolrEncoder
- Parameters:
fieldName
- The name of the fieldparams
- The params controlling Highlighting- Returns:
- An appropriate
Encoder
-
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
-
-