org.dlese.dpc.index.analysis
Class LowerCaseWhitespaceAnalyzer
java.lang.Object
org.apache.lucene.analysis.Analyzer
org.dlese.dpc.index.analysis.LowerCaseWhitespaceAnalyzer
- All Implemented Interfaces:
- Closeable
public class LowerCaseWhitespaceAnalyzer
- extends org.apache.lucene.analysis.Analyzer
An Analyzer that uses a WhitespaceTokenizer and a LowerCaseFilter to normalize the
text to lower case.
- Author:
- John Weatherley
- See Also:
LowerCaseFilter
Fields inherited from class org.apache.lucene.analysis.Analyzer |
overridesTokenStreamMethod |
Method Summary |
org.apache.lucene.analysis.TokenStream |
tokenStream(String fieldName,
Reader reader)
Normalizes the text to lower case. |
Methods inherited from class org.apache.lucene.analysis.Analyzer |
close, getOffsetGap, getPositionIncrementGap, getPreviousTokenStream, reusableTokenStream, setOverridesTokenStreamMethod, setPreviousTokenStream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LowerCaseWhitespaceAnalyzer
public LowerCaseWhitespaceAnalyzer()
tokenStream
public org.apache.lucene.analysis.TokenStream tokenStream(String fieldName,
Reader reader)
- Normalizes the text to lower case.
- Specified by:
tokenStream
in class org.apache.lucene.analysis.Analyzer
- Parameters:
fieldName
- Name of the field being tokenizedreader
- The Reader
- Returns:
- The appropriate TokenStream
- See Also:
LowerCaseFilter