com.atlassian.jira.issue.index
Class JavaExceptionAnalyzer
java.lang.Object
org.apache.lucene.analysis.Analyzer
com.atlassian.jira.issue.index.JavaExceptionAnalyzer
public class JavaExceptionAnalyzer
- extends org.apache.lucene.analysis.Analyzer
This class wraps the given 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).
- Since:
- v3.12
- See Also:
SubtokenFilter
| Fields inherited from class org.apache.lucene.analysis.Analyzer |
overridesTokenStreamMethod |
|
Constructor Summary |
JavaExceptionAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
Constructs a new instance and wraps the given analyzer |
| Methods inherited from class org.apache.lucene.analysis.Analyzer |
close, getOffsetGap, getPreviousTokenStream, reusableTokenStream, setOverridesTokenStreamMethod, setPreviousTokenStream |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaExceptionAnalyzer
public JavaExceptionAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
- Constructs a new instance and wraps the given analyzer
- Parameters:
analyzer - analyzer to wrap
tokenStream
public org.apache.lucene.analysis.TokenStream tokenStream(String fieldName,
Reader reader)
- Returns the token stream of the underlying analyzer with ExceptionFilter wrapped around it
- Specified by:
tokenStream in class org.apache.lucene.analysis.Analyzer
- Parameters:
fieldName - field namereader - reader
- Returns:
- token stream of the underlying analyzer with ExceptionFilter wrapped around it
getPositionIncrementGap
public int getPositionIncrementGap(String fieldName)
- Overrides:
getPositionIncrementGap in class org.apache.lucene.analysis.Analyzer
Copyright © 2002-2011 Atlassian. All Rights Reserved.