org.hibernate.search.test.util
Class AnalyzerUtils
java.lang.Object
org.hibernate.search.test.util.AnalyzerUtils
public class AnalyzerUtils
- extends Object
Helper class to test analyzers. Taken and modified from Lucene in Action.
- Author:
- Hardy Ferentschik
Field Summary |
static org.slf4j.Logger |
log
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
public static final org.slf4j.Logger log
AnalyzerUtils
public AnalyzerUtils()
tokensFromAnalysis
public static org.apache.lucene.analysis.Token[] tokensFromAnalysis(org.apache.lucene.analysis.Analyzer analyzer,
String field,
String text)
throws IOException
- Throws:
IOException
displayTokens
public static void displayTokens(org.apache.lucene.analysis.Analyzer analyzer,
String field,
String text)
throws IOException
- Throws:
IOException
displayTokensWithPositions
public static void displayTokensWithPositions(org.apache.lucene.analysis.Analyzer analyzer,
String field,
String text)
throws IOException
- Throws:
IOException
displayTokensWithFullDetails
public static void displayTokensWithFullDetails(org.apache.lucene.analysis.Analyzer analyzer,
String field,
String text)
throws IOException
- Throws:
IOException
assertTokensEqual
public static void assertTokensEqual(org.apache.lucene.analysis.Token[] tokens,
String[] strings)
getTermText
public static String getTermText(org.apache.lucene.analysis.Token token)
Copyright © 2006-2010 Hibernate. All Rights Reserved.