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:
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
Modifier and TypeClassDescriptionstatic 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.lucene.analysis.Analyzer
getWrappedAnalyzer
(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, normalize, tokenStream, tokenStream
-
Constructor Details
-
NexusAnalyzer
public NexusAnalyzer()
-
-
Method Details
-
getWrappedAnalyzer
- Specified by:
getWrappedAnalyzer
in classorg.apache.lucene.analysis.AnalyzerWrapper
-