public class

JavaExceptionAnalyzer

extends Analyzer
java.lang.Object
   ↳ org.apache.lucene.analysis.Analyzer
     ↳ com.atlassian.jira.issue.index.JavaExceptionAnalyzer

Class Overview

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).

See Also

Summary

Public Constructors
JavaExceptionAnalyzer(Analyzer analyzer)
Constructs a new instance and wraps the given analyzer
Public Methods
int getPositionIncrementGap(String fieldName)
final TokenStream reusableTokenStream(String fieldName, Reader reader)
final TokenStream tokenStream(String fieldName, Reader reader)
Returns the token stream of the underlying analyzer with ExceptionFilter wrapped around it
[Expand]
Inherited Methods
From class org.apache.lucene.analysis.Analyzer
From class java.lang.Object
From interface java.io.Closeable

Public Constructors

public JavaExceptionAnalyzer (Analyzer analyzer)

Constructs a new instance and wraps the given analyzer

Parameters
analyzer analyzer to wrap

Public Methods

public int getPositionIncrementGap (String fieldName)

public final TokenStream reusableTokenStream (String fieldName, Reader reader)

Throws
IOException

public final TokenStream tokenStream (String fieldName, Reader reader)

Returns the token stream of the underlying analyzer with ExceptionFilter wrapped around it

Parameters
fieldName field name
reader reader
Returns
  • token stream of the underlying analyzer with ExceptionFilter wrapped around it