public class JavaExceptionAnalyzer
extends org.apache.lucene.analysis.Analyzer
The Analyzer.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 |
---|---|
protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents |
createComponents(String fieldName)
Returns the token stream of the underlying analyzer with ExceptionFilter wrapped around it
|
int |
getPositionIncrementGap(String fieldName) |
public JavaExceptionAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
analyzer
- analyzer to wrapprotected org.apache.lucene.analysis.Analyzer.TokenStreamComponents createComponents(String fieldName)
createComponents
in class org.apache.lucene.analysis.Analyzer
fieldName
- field namepublic int getPositionIncrementGap(String fieldName)
getPositionIncrementGap
in class org.apache.lucene.analysis.Analyzer
Copyright © 2002-2024 Atlassian. All Rights Reserved.