List of usage examples for org.apache.lucene.search.highlight Formatter interface-usage
From source file com.appeligo.search.util.TermFormatter.java
public class TermFormatter implements Formatter { public String highlightTerm(String originalText, TokenGroup tokenGroup) { if (tokenGroup.getTotalScore() <= 0) { return originalText; }
From source file com.knowledgetree.indexer.IndexerManager.java
public class IndexerManager implements Formatter { public static final String KnowledgeTreeLoggingProperties = "KnowledgeTreeIndexer.Logging.properties"; private static IndexerManager indexingManager; private IndexReader queryReader; private Searcher querySearcher;
From source file com.taobao.common.tedis.support.lucene.analysis.xanalyzer.TestHighLight.java
class BoldFormatter implements Formatter { public String highlightTerm(String originalText, TokenGroup group) { if (group.getTotalScore() <= 0) { return originalText; } return "<b>" + originalText + "</b>";
From source file de.elbe5.cms.search.SearchContextFormatter.java
public class SearchContextFormatter implements Formatter { public SearchContextFormatter() { } public String highlightTerm(String originalText, TokenGroup tokenGroup) {
From source file de.fhg.iais.cortex.search.highlight.TermRememberingFormatter.java
/**
* called by Lucene/Solr, see solrconfig.xml<br>
* uses a ConcurrentSkipListSet to avoid a {@link ConcurrentModificationException} because {@link #highlightTerm(String, TokenGroup)} and
* {@link #getHighlightedTerms()} may be called from different
* threads.
*/
From source file net.sf.zekr.engine.search.lucene.IExtendedFormatter.java
public interface IExtendedFormatter extends Formatter, IZekrHighlighter { int getHighlightCount(); }
From source file org.apache.pylucene.search.highlight.PythonFormatter.java
public class PythonFormatter implements Formatter { private long pythonObject; public PythonFormatter() { }
From source file org.carrot2.source.lucene.PlainTextFormatter.java
/** * An implementation of the Lucene highlighter's {@link Formatter} interface that doesn't * do any highlighting and just returns the original text. */ public final class PlainTextFormatter implements Formatter { public String highlightTerm(String originalText, TokenGroup tokengroup) {
From source file org.eclipse.smila.search.lucene.index.AnnotationFormatter.java
/** * Implementation of a lucene Formatter that creates highlighting annotations. */ public class AnnotationFormatter implements Formatter { /**