public class JavaExceptionAnalyzer
extends org.apache.lucene.analysis.Analyzer
The tokenStream(String, java.io.Reader) method wraps the resulting
TokenStream in the SubtokenFilter.
Note: This works on more than just Java exceptions due to the functionality implemented by SubtokenFilter
(JRA-7774).
SubtokenFilter| Constructor and Description |
|---|
JavaExceptionAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
Constructs a new instance and wraps the given analyzer
|
| Modifier and Type | Method and Description |
|---|---|
int |
getPositionIncrementGap(String fieldName) |
org.apache.lucene.analysis.TokenStream |
reusableTokenStream(String fieldName,
Reader reader) |
org.apache.lucene.analysis.TokenStream |
tokenStream(String fieldName,
Reader reader)
Returns the token stream of the underlying analyzer with ExceptionFilter wrapped around it
|
public JavaExceptionAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
analyzer - analyzer to wrappublic final org.apache.lucene.analysis.TokenStream tokenStream(String fieldName, Reader reader)
tokenStream in class org.apache.lucene.analysis.AnalyzerfieldName - field namereader - readerpublic final org.apache.lucene.analysis.TokenStream reusableTokenStream(String fieldName, Reader reader) throws IOException
reusableTokenStream in class org.apache.lucene.analysis.AnalyzerIOExceptionpublic int getPositionIncrementGap(String fieldName)
getPositionIncrementGap in class org.apache.lucene.analysis.AnalyzerCopyright © 2002-2018 Atlassian. All Rights Reserved.