Package org.apache.solr.highlight
Interface SolrFormatter
-
- All Superinterfaces:
AutoCloseable
,NamedListInitializedPlugin
,SolrInfoBean
,SolrMetricProducer
- All Known Implementing Classes:
HtmlFormatter
public interface SolrFormatter extends SolrInfoBean, NamedListInitializedPlugin
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoBean
SolrInfoBean.Category, SolrInfoBean.Group
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.lucene.search.highlight.Formatter
getFormatter(String fieldName, org.apache.solr.common.params.SolrParams params)
Return aFormatter
appropriate for this field.-
Methods inherited from interface org.apache.solr.util.plugin.NamedListInitializedPlugin
init
-
Methods inherited from interface org.apache.solr.core.SolrInfoBean
getCategory, getDescription, getName
-
Methods inherited from interface org.apache.solr.metrics.SolrMetricProducer
close, getSolrMetricsContext, initializeMetrics
-
-
-
-
Method Detail
-
getFormatter
org.apache.lucene.search.highlight.Formatter getFormatter(String fieldName, org.apache.solr.common.params.SolrParams params)
Return aFormatter
appropriate for this field.- Parameters:
fieldName
- The name of the fieldparams
- The params controlling Highlighting- Returns:
- An appropriate
Formatter
-
-