Class NexusAnalyzer

java.lang.Object
org.apache.lucene.analysis.Analyzer
org.apache.lucene.analysis.AnalyzerWrapper
org.apache.maven.index.context.NexusAnalyzer
All Implemented Interfaces:
Closeable, 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.
Author:
Eugene Kuleshov, cstamas
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Deprecated.
    static class 
     
    static class 
     

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

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

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

    GLOBAL_REUSE_STRATEGY, PER_FIELD_REUSE_STRATEGY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.lucene.analysis.Analyzer
     

    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, normalize, tokenStream, tokenStream

    Methods inherited from class java.lang.Object

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

    • NexusAnalyzer

      public NexusAnalyzer()
  • Method Details

    • getWrappedAnalyzer

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