Class SimpleAnalyzer

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class SimpleAnalyzer
    extends org.apache.lucene.analysis.Analyzer
    A simple Lucene Analyzer used for the index creation.
    Author:
    m.roeder
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.lucene.analysis.Analyzer

        org.apache.lucene.analysis.Analyzer.GlobalReuseStrategy, org.apache.lucene.analysis.Analyzer.PerFieldReuseStrategy, org.apache.lucene.analysis.Analyzer.ReuseStrategy, org.apache.lucene.analysis.Analyzer.TokenStreamComponents
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.apache.lucene.analysis.core.LowerCaseFilterFactory lowerCaseFilterFactory  
      private static String PATTERN  
      private org.apache.lucene.analysis.pattern.PatternTokenizerFactory tokenizerFactory  
      private static org.apache.lucene.util.Version version  
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleAnalyzer​(boolean lowerCase)  
    • Field Detail

      • version

        private static final org.apache.lucene.util.Version version
      • tokenizerFactory

        private org.apache.lucene.analysis.pattern.PatternTokenizerFactory tokenizerFactory
      • lowerCaseFilterFactory

        private org.apache.lucene.analysis.core.LowerCaseFilterFactory lowerCaseFilterFactory
    • Constructor Detail

      • SimpleAnalyzer

        public SimpleAnalyzer​(boolean lowerCase)
    • Method Detail

      • createComponents

        protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents createComponents​(String fieldName,
                                                                                             Reader reader)
        Specified by:
        createComponents in class org.apache.lucene.analysis.Analyzer