public class

CJKAnalyzer

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

Summary

Public Constructors
CJKAnalyzer(boolean indexing, Function<TokenStreamTokenStream> stopWordFilter)
Public Methods
boolean isIndexing()
final TokenStream reusableTokenStream(String fieldName, Reader reader)
final TokenStream tokenStream(String fieldname, Reader reader)
Protected Methods
TokenStream wrapStreamForIndexing(TokenStream input)
Applies a SubtokenFilter to the input token stream at document indexing time.
TokenStream wrapStreamForWilcardSearchSupport(TokenStream input)
Applies a KeywordRepeatFilter to the input token stream at document indexing time to store the original tokens as keywords before any stemming filter is applied and therefore support wildcard searches and exact phrase queries on document fields.
[Expand]
Inherited Methods
From class org.apache.lucene.analysis.Analyzer
From class java.lang.Object
From interface java.io.Closeable

Public Constructors

public CJKAnalyzer (boolean indexing, Function<TokenStreamTokenStream> stopWordFilter)

Public Methods

public boolean isIndexing ()

public final TokenStream reusableTokenStream (String fieldName, Reader reader)

Throws
IOException

public final TokenStream tokenStream (String fieldname, Reader reader)

Protected Methods

protected TokenStream wrapStreamForIndexing (TokenStream input)

Applies a SubtokenFilter to the input token stream at document indexing time.

Parameters
input token stream
Returns
  • A TokenStream filtered by the sub-token filter during indexing, otherwise the input token stream is returned.

protected TokenStream wrapStreamForWilcardSearchSupport (TokenStream input)

Applies a KeywordRepeatFilter to the input token stream at document indexing time to store the original tokens as keywords before any stemming filter is applied and therefore support wildcard searches and exact phrase queries on document fields.

Parameters
input token stream
Returns
  • A TokenStream filtered by the sub-token filter during indexing, otherwise the input token stream is returned.