com.atlassian.jira.issue.index
Class JavaExceptionAnalyzer
java.lang.Object
org.apache.lucene.analysis.Analyzer
com.atlassian.jira.issue.index.JavaExceptionAnalyzer
- All Implemented Interfaces:
- Closeable
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
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, 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 final 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
reusableTokenStream
public final org.apache.lucene.analysis.TokenStream reusableTokenStream(String fieldName,
Reader reader)
throws IOException
- Overrides:
reusableTokenStream
in class org.apache.lucene.analysis.Analyzer
- Throws:
IOException
getPositionIncrementGap
public int getPositionIncrementGap(String fieldName)
- Overrides:
getPositionIncrementGap
in class org.apache.lucene.analysis.Analyzer
Copyright © 2002-2013 Atlassian. All Rights Reserved.