org.apache.solr.highlight
Class HtmlFormatter

java.lang.Object
  extended by org.apache.solr.highlight.HighlightingPluginBase
      extended by org.apache.solr.highlight.HtmlFormatter
All Implemented Interfaces:
SolrInfoMBean, SolrFormatter, NamedListInitializedPlugin

public class HtmlFormatter
extends HighlightingPluginBase
implements SolrFormatter

Use the SimpleHTMLFormatter


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoMBean
SolrInfoMBean.Category
 
Field Summary
 
Fields inherited from class org.apache.solr.highlight.HighlightingPluginBase
defaults, numRequests
 
Constructor Summary
HtmlFormatter()
           
 
Method Summary
 String getDescription()
          Simple one or two line description
 Formatter getFormatter(String fieldName, SolrParams params)
          Return a Formatter appropriate for this field.
 String getSource()
          CVS Source, SVN Source, etc
 
Methods inherited from class org.apache.solr.highlight.HighlightingPluginBase
getCategory, getDocs, getName, getStatistics, getVersion, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.solr.highlight.SolrFormatter
init
 
Methods inherited from interface org.apache.solr.core.SolrInfoMBean
getCategory, getDocs, getName, getStatistics, getVersion
 

Constructor Detail

HtmlFormatter

public HtmlFormatter()
Method Detail

getFormatter

public Formatter getFormatter(String fieldName,
                              SolrParams params)
Description copied from interface: SolrFormatter
Return a Formatter appropriate for this field.

Specified by:
getFormatter in interface SolrFormatter
Parameters:
fieldName - The name of the field
params - The params controlling Highlighting
Returns:
An appropriate Formatter

getDescription

public String getDescription()
Description copied from interface: SolrInfoMBean
Simple one or two line description

Specified by:
getDescription in interface SolrInfoMBean
Specified by:
getDescription in class HighlightingPluginBase

getSource

public String getSource()
Description copied from interface: SolrInfoMBean
CVS Source, SVN Source, etc

Specified by:
getSource in interface SolrInfoMBean
Specified by:
getSource in class HighlightingPluginBase


Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.