Package org.apache.solr.highlight
Interface SolrFragmenter
- All Superinterfaces:
AutoCloseable,NamedListInitializedPlugin,SolrInfoBean,SolrMetricProducer
- All Known Implementing Classes:
GapFragmenter,RegexFragmenter
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoBean
SolrInfoBean.Category, SolrInfoBean.Group -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.search.highlight.FragmentergetFragmenter(String fieldName, org.apache.solr.common.params.SolrParams params) Return aFragmenterappropriate for this field.Methods inherited from interface org.apache.solr.util.plugin.NamedListInitializedPlugin
initMethods inherited from interface org.apache.solr.core.SolrInfoBean
getCategory, getDescription, getNameMethods inherited from interface org.apache.solr.metrics.SolrMetricProducer
close, getSolrMetricsContext, initializeMetrics
-
Method Details
-
getFragmenter
org.apache.lucene.search.highlight.Fragmenter getFragmenter(String fieldName, org.apache.solr.common.params.SolrParams params) Return aFragmenterappropriate for this field.- Parameters:
fieldName- The name of the fieldparams- The params controlling Highlighting- Returns:
- An appropriate
Fragmenter.
-