Class NexusAnalyzer

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public final class NexusAnalyzer
    extends org.apache.lucene.analysis.AnalyzerWrapper
    A Nexus specific analyzer. Only difference from Lucene's SimpleAnalyzer is that we use LetterOrDigitTokenizer instead of LowerCaseTokenizer. LetterOrDigitTokenizer does pretty much the same as LowerCaseTokenizer, it normalizes to lower case letter, but it takes letters and numbers too (as opposed to LowerCaseTokenizer) as token chars.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static org.apache.lucene.analysis.Analyzer CLASS_NAMES_ANALYZER  
      private static org.apache.lucene.analysis.Analyzer LETTER_OR_DIGIT_ANALYZER  
      • Fields inherited from class org.apache.lucene.analysis.Analyzer

        GLOBAL_REUSE_STRATEGY, PER_FIELD_REUSE_STRATEGY
    • Constructor Summary

      Constructors 
      Constructor Description
      NexusAnalyzer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.apache.lucene.analysis.Analyzer getWrappedAnalyzer​(java.lang.String fieldName)  
      • Methods inherited from class org.apache.lucene.analysis.AnalyzerWrapper

        attributeFactory, createComponents, getOffsetGap, getPositionIncrementGap, initReader, initReaderForNormalization, normalize, wrapComponents, wrapReader, wrapReaderForNormalization, wrapTokenStreamForNormalization
      • Methods inherited from class org.apache.lucene.analysis.Analyzer

        close, getReuseStrategy, getVersion, normalize, setVersion, tokenStream, tokenStream
      • Methods inherited from class java.lang.Object

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

      • CLASS_NAMES_ANALYZER

        private static final org.apache.lucene.analysis.Analyzer CLASS_NAMES_ANALYZER
      • LETTER_OR_DIGIT_ANALYZER

        private static final org.apache.lucene.analysis.Analyzer LETTER_OR_DIGIT_ANALYZER
    • Constructor Detail

      • NexusAnalyzer

        public NexusAnalyzer()
    • Method Detail

      • getWrappedAnalyzer

        protected org.apache.lucene.analysis.Analyzer getWrappedAnalyzer​(java.lang.String fieldName)
        Specified by:
        getWrappedAnalyzer in class org.apache.lucene.analysis.AnalyzerWrapper