org.carrot2.source.lucene
Class PlainTextFormatter
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlainTextFormatter
public PlainTextFormatter()
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