Package org.apache.solr.highlight
Class DefaultEncoder
- java.lang.Object
-
- org.apache.solr.highlight.HighlightingPluginBase
-
- org.apache.solr.highlight.DefaultEncoder
-
- All Implemented Interfaces:
AutoCloseable,SolrInfoBean,SolrEncoder,SolrMetricProducer,NamedListInitializedPlugin
public class DefaultEncoder extends HighlightingPluginBase implements SolrEncoder
Use theDefaultEncoder
-
-
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 DefaultEncoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Simple 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, 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: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
public String getDescription()
Description copied from interface:SolrInfoBeanSimple one or two line description- Specified by:
getDescriptionin interfaceSolrInfoBean- Specified by:
getDescriptionin classHighlightingPluginBase
-
-