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
Use the
SimpleHTMLEncoder-
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 -
Method Summary
Modifier and TypeMethodDescriptionSimple one or two line descriptionorg.apache.lucene.search.highlight.EncodergetEncoder(String fieldName, org.apache.solr.common.params.SolrParams params) Return anEncoderappropriate for this field.Methods inherited from class org.apache.solr.highlight.HighlightingPluginBase
getCategory, getName, getSolrMetricsContext, init, initializeMetricsMethods 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
initMethods inherited from interface org.apache.solr.core.SolrInfoBean
getCategory, getNameMethods inherited from interface org.apache.solr.metrics.SolrMetricProducer
close, getSolrMetricsContext, initializeMetrics
-
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:SolrEncoderReturn anEncoderappropriate for this field.- Specified by:
getEncoderin interfaceSolrEncoder- Parameters:
fieldName- The name of the fieldparams- The params controlling Highlighting- Returns:
- An appropriate
Encoder
-
getDescription
Description copied from interface:SolrInfoBeanSimple one or two line description- Specified by:
getDescriptionin interfaceSolrInfoBean- Specified by:
getDescriptionin classHighlightingPluginBase
-