Class LowerCaseWhitespaceAnalyzer

java.lang.Object
org.apache.lucene.analysis.Analyzer
org.dlese.dpc.index.analysis.LowerCaseWhitespaceAnalyzer
All Implemented Interfaces:
Closeable, AutoCloseable

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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 Details

    • LowerCaseWhitespaceAnalyzer

      public LowerCaseWhitespaceAnalyzer()
  • Method Details

    • 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