Package org.apache.maven.index.context
Class NexusAnalyzer
- java.lang.Object
-
- org.apache.lucene.analysis.Analyzer
-
- org.apache.lucene.analysis.AnalyzerWrapper
-
- org.apache.maven.index.context.NexusAnalyzer
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public final class NexusAnalyzer extends org.apache.lucene.analysis.AnalyzerWrapperA 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNexusAnalyzer.DeprecatedClassnamesTokenizerDeprecated.static classNexusAnalyzer.LetterOrDigitTokenizerstatic classNexusAnalyzer.NoopTokenizer
-
Field Summary
Fields Modifier and Type Field Description private static org.apache.lucene.analysis.AnalyzerCLASS_NAMES_ANALYZERprivate static org.apache.lucene.analysis.AnalyzerLETTER_OR_DIGIT_ANALYZER
-
Constructor Summary
Constructors Constructor Description NexusAnalyzer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.lucene.analysis.AnalyzergetWrappedAnalyzer(java.lang.String fieldName)-
Methods inherited from class org.apache.lucene.analysis.AnalyzerWrapper
attributeFactory, createComponents, getOffsetGap, getPositionIncrementGap, initReader, initReaderForNormalization, normalize, wrapComponents, wrapReader, wrapReaderForNormalization, wrapTokenStreamForNormalization
-
-