DLESE Tools
v1.6.0

org.dlese.dpc.index.analysis
Class LowerCaseWhitespaceAnalyzer

java.lang.Object
  extended by org.apache.lucene.analysis.Analyzer
      extended by 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

Field Summary
 
Fields inherited from class org.apache.lucene.analysis.Analyzer
overridesTokenStreamMethod
 
Constructor Summary
LowerCaseWhitespaceAnalyzer()
           
 
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
 

Constructor Detail

LowerCaseWhitespaceAnalyzer

public LowerCaseWhitespaceAnalyzer()
Method Detail

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 tokenized
reader - The Reader
Returns:
The appropriate TokenStream
See Also:
LowerCaseFilter

DLESE Tools
v1.6.0