public class

GreekAnalyzer

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

Class Overview

Extends the functionality of the Standard (language) Analyser provided by Lucene by using the ClassicAnalyser and adding the SubtokenFilter.

Note: checked for Lucene 3.2 compatibility.

See Also

Summary

Public Constructors
GreekAnalyzer(Version matchVersion, boolean indexing, Function<TokenStreamTokenStream> stemmingFilter, Function<TokenStreamTokenStream> stopWordFilter)
Public Methods
boolean isIndexing()
final TokenStream reusableTokenStream(String fieldName, Reader reader)
final TokenStream tokenStream(String fieldName, Reader reader)
Creates a TokenStream which tokenizes all the text in the provided 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
From interface java.lang.AutoCloseable

Public Constructors

public GreekAnalyzer (Version matchVersion, boolean indexing, Function<TokenStreamTokenStream> stemmingFilter, 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)

Creates a TokenStream which tokenizes all the text in the provided Reader.

Returns
  • A TokenStream build from a StandardTokenizer filtered with StandardFilter, LowerCaseFilter, StopFilter, GermanStemFilter

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.