org.apache.solr.highlight
Interface SolrFormatter
- All Superinterfaces:
- NamedListInitializedPlugin, SolrInfoMBean
- All Known Implementing Classes:
- HtmlFormatter
public interface SolrFormatter
- extends SolrInfoMBean, NamedListInitializedPlugin
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 interface NamedListInitializedPlugin
getFormatter
Formatter getFormatter(String fieldName,
SolrParams params)
- Return a
Formatter
appropriate for this field.
- Parameters:
fieldName
- The name of the fieldparams
- The params controlling Highlighting
- Returns:
- An appropriate
Formatter
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.