Class SimpleAnalyzer

java.lang.Object
org.apache.lucene.analysis.Analyzer
org.aksw.palmetto.corpus.lucene.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
     
    private static String
     
    private org.apache.lucene.analysis.pattern.PatternTokenizerFactory
     
    private static org.apache.lucene.util.Version
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SimpleAnalyzer​(boolean lowerCase)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents
    createComponents​(String fieldName, Reader reader)
     

    Methods inherited from class org.apache.lucene.analysis.Analyzer

    close, getOffsetGap, getPositionIncrementGap, initReader, tokenStream, tokenStream

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • version

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

      private static final String PATTERN
      See Also:
      Constant Field Values
    • tokenizerFactory

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

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

    • SimpleAnalyzer

      public SimpleAnalyzer(boolean lowerCase)
  • Method Details

    • createComponents

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