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.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NexusAnalyzer.DeprecatedClassnamesTokenizer
Deprecated.static class
NexusAnalyzer.LetterOrDigitTokenizer
static class
NexusAnalyzer.NoopTokenizer
-
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
-
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
-
-