Package org.dlese.dpc.index.analysis
Class LowerCaseAnalyzer
java.lang.Object
org.apache.lucene.analysis.Analyzer
org.dlese.dpc.index.analysis.LowerCaseAnalyzer
- All Implemented Interfaces:
Closeable,AutoCloseable
public class LowerCaseAnalyzer
extends org.apache.lucene.analysis.Analyzer
An Analyzer that uses a LowerCaseFilter to normalize the text to lower case.
- Author:
- John Weatherley
- See Also:
-
Field Summary
Fields inherited from class org.apache.lucene.analysis.Analyzer
overridesTokenStreamMethod -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.analysis.TokenStreamtokenStream(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
-
Constructor Details
-
LowerCaseAnalyzer
public LowerCaseAnalyzer()
-
-
Method Details
-
tokenStream
Normalizes the text to lower case.- Specified by:
tokenStreamin classorg.apache.lucene.analysis.Analyzer- Parameters:
fieldName- Name of the field being tokenizedreader- The Reader- Returns:
- The appropriate TokenStream
- See Also:
-