org.carrot2.source.lucene
Class PlainTextFormatter

java.lang.Object
  extended by org.carrot2.source.lucene.PlainTextFormatter
All Implemented Interfaces:
org.apache.lucene.search.highlight.Formatter

public final class PlainTextFormatter
extends Object
implements org.apache.lucene.search.highlight.Formatter

An implementation of the Lucene highlighter's Formatter interface that doesn't do any highlighting and just returns the original text.


Constructor Summary
PlainTextFormatter()
           
 
Method Summary
 String highlightTerm(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

PlainTextFormatter

public PlainTextFormatter()
Method Detail

highlightTerm

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


Copyright (c) Dawid Weiss, Stanislaw Osinski