Class ExactAnalyzer
- java.lang.Object
-
- org.apache.lucene.analysis.Analyzer
-
- com.atlassian.confluence.impl.search.v2.lucene.analysis.analyzer.exact.ExactAnalyzer
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ExactAnalyzer extends org.apache.lucene.analysis.AnalyzerCustom analyzer designed for supporting exact matching.Use when indexing for fields which should support exact matches or when searching for fields which support exact matches.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.analysis.Analyzer
org.apache.lucene.analysis.Analyzer.GlobalReuseStrategy, org.apache.lucene.analysis.Analyzer.PerFieldReuseStrategy, org.apache.lucene.analysis.Analyzer.ReuseStrategy, org.apache.lucene.analysis.Analyzer.TokenStreamComponents
-
-
Constructor Summary
Constructors Constructor Description ExactAnalyzer(org.apache.lucene.util.Version version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.lucene.analysis.Analyzer.TokenStreamComponentscreateComponents(String fieldName, Reader reader)Only create tokens by whitespace, and lowercase each token.
-
-
-
Method Detail
-
createComponents
protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents createComponents(String fieldName, Reader reader)
Only create tokens by whitespace, and lowercase each token.e.g. "the Brown F@x *" -> {"the", "brown", "f@x", "*"}
- Specified by:
createComponentsin classorg.apache.lucene.analysis.Analyzer
-
-