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.SolrInfoBeanSolrInfoBean.Category, SolrInfoBean.Group
 
- 
 - 
Field Summary- 
Fields inherited from class org.apache.solr.highlight.HighlightingPluginBasedefaults, metricNames, numRequests, solrMetricsContext
 
- 
 - 
Constructor SummaryConstructors Constructor Description DefaultEncoder()
 - 
Method SummaryAll 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.HighlightingPluginBasegetCategory, getName, getSolrMetricsContext, init, initializeMetrics
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.solr.util.plugin.NamedListInitializedPlugininit
 - 
Methods inherited from interface org.apache.solr.core.SolrInfoBeangetCategory, getName
 - 
Methods inherited from interface org.apache.solr.metrics.SolrMetricProducerclose, getSolrMetricsContext, initializeMetrics
 
- 
 
- 
- 
- 
Method Detail- 
getEncoderpublic 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 interface- SolrEncoder
- Parameters:
- fieldName- The name of the field
- params- The params controlling Highlighting
- Returns:
- An appropriate Encoder
 
 - 
getDescriptionpublic String getDescription() Description copied from interface:SolrInfoBeanSimple one or two line description- Specified by:
- getDescriptionin interface- SolrInfoBean
- Specified by:
- getDescriptionin class- HighlightingPluginBase
 
 
- 
 
-