net.sf.zekr.engine.search.lucene
Class ZekrHighlightFormatter

java.lang.Object
  extended by net.sf.zekr.engine.search.lucene.ZekrHighlightFormatter
All Implemented Interfaces:
IExtendedFormatter, org.apache.lucene.search.highlight.Formatter

public class ZekrHighlightFormatter
extends java.lang.Object
implements IExtendedFormatter

Default highlighter used for highlighting Lucene search results.

Author:
Mohsen Saboorian

Constructor Summary
ZekrHighlightFormatter()
           
 
Method Summary
 int getHighlightCount()
           
 java.lang.String highlightTerm(java.lang.String originalText, org.apache.lucene.search.highlight.TokenGroup tokenGroup)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZekrHighlightFormatter

public ZekrHighlightFormatter()
Method Detail

highlightTerm

public java.lang.String highlightTerm(java.lang.String originalText,
                                      org.apache.lucene.search.highlight.TokenGroup tokenGroup)
Specified by:
highlightTerm in interface org.apache.lucene.search.highlight.Formatter

getHighlightCount

public int getHighlightCount()
Specified by:
getHighlightCount in interface IExtendedFormatter