Package org.apache.solr.highlight
Interface SolrFragmenter
-
- All Superinterfaces:
NamedListInitializedPlugin
,SolrInfoBean
- All Known Implementing Classes:
GapFragmenter
,RegexFragmenter
public interface SolrFragmenter 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.Fragmenter
getFragmenter(String fieldName, SolrParams params)
Return aFragmenter
appropriate for this field.void
init(NamedList args)
init
will be called just once, immediately after creation.-
Methods inherited from interface org.apache.solr.core.SolrInfoBean
getCategory, getDescription, getMetricNames, getMetricRegistry, getMetricsSnapshot, getName, registerMetricName
-
-
-
-
Method Detail
-
init
void init(NamedList args)
init
will be called just once, immediately after creation.The args are user-level initialization parameters that may be specified when declaring a request handler in solrconfig.xml
- Specified by:
init
in interfaceNamedListInitializedPlugin
-
getFragmenter
org.apache.lucene.search.highlight.Fragmenter getFragmenter(String fieldName, SolrParams params)
Return aFragmenter
appropriate for this field.- Parameters:
fieldName
- The name of the fieldparams
- The params controlling Highlighting- Returns:
- An appropriate
Fragmenter
.
-
-