Class OakAnalyzer
- java.lang.Object
-
- org.apache.lucene.analysis.Analyzer
-
- org.apache.jackrabbit.oak.plugins.index.lucene.OakAnalyzer
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class OakAnalyzer extends Analyzer
The default Lucene Analyzer used in Oak.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.analysis.Analyzer
Analyzer.GlobalReuseStrategy, Analyzer.PerFieldReuseStrategy, Analyzer.ReuseStrategy, 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 OakAnalyzer(Version matchVersion)
Creates a newOakAnalyzer
OakAnalyzer(Version matchVersion, boolean indexOriginalTerm)
Create a newOakAnalyzer
with configurable flag to preserve original term being analyzed too.
-
Method Summary
-
Methods inherited from class org.apache.lucene.analysis.Analyzer
close, getOffsetGap, getPositionIncrementGap, getReuseStrategy, tokenStream, tokenStream
-
-
-
-
Constructor Detail
-
OakAnalyzer
public OakAnalyzer(Version matchVersion)
Creates a newOakAnalyzer
- Parameters:
matchVersion
- Lucene version to match Seeabove
-
OakAnalyzer
public OakAnalyzer(Version matchVersion, boolean indexOriginalTerm)
Create a newOakAnalyzer
with configurable flag to preserve original term being analyzed too.- Parameters:
matchVersion
- Lucene version to match Seeabove
indexOriginalTerm
- flag to setup analyzer such thatWordDelimiterFilter.PRESERVE_ORIGINAL
is set to configure word delimiter
-
-