Class ThaiAnalyzer
java.lang.Object
org.apache.lucene.analysis.Analyzer
com.atlassian.jira.issue.index.analyzer.TextAnalyzer
com.atlassian.jira.issue.index.analyzer.ThaiAnalyzer
- All Implemented Interfaces:
Closeable,AutoCloseable
Deprecated, for removal: This API element is subject to removal in a future version.
since 10.4.
Extends the functionality of the standard ThaiAnalyser provided by Lucene by adding the SubtokenFilter.
Note: checked for Lucene 2.9 compatibility.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.analysis.Analyzer
org.apache.lucene.analysis.Analyzer.ReuseStrategy, org.apache.lucene.analysis.Analyzer.TokenStreamComponents -
Field Summary
Fields inherited from class org.apache.lucene.analysis.Analyzer
GLOBAL_REUSE_STRATEGY, PER_FIELD_REUSE_STRATEGY -
Constructor Summary
ConstructorsConstructorDescriptionThaiAnalyzer(boolean indexing, com.google.common.base.Function<org.apache.lucene.analysis.TokenStream, org.apache.lucene.analysis.TokenStream> stopWordFilter) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionfinal org.apache.lucene.analysis.Analyzer.TokenStreamComponentscreateComponents(String fieldName) Deprecated, for removal: This API element is subject to removal in a future version.Creates a TokenStream which tokenizes all the text in the provided Reader.Methods inherited from class com.atlassian.jira.issue.index.analyzer.TextAnalyzer
isIndexing, wrapStreamForIndexing, wrapStreamForWilcardSearchSupportMethods inherited from class org.apache.lucene.analysis.Analyzer
attributeFactory, close, getOffsetGap, getPositionIncrementGap, getReuseStrategy, getVersion, initReader, initReaderForNormalization, normalize, normalize, setVersion, tokenStream, tokenStream
-
Constructor Details
-
ThaiAnalyzer
public ThaiAnalyzer(boolean indexing, com.google.common.base.Function<org.apache.lucene.analysis.TokenStream, org.apache.lucene.analysis.TokenStream> stopWordFilter) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
createComponents
public final org.apache.lucene.analysis.Analyzer.TokenStreamComponents createComponents(String fieldName) Deprecated, for removal: This API element is subject to removal in a future version.Creates a TokenStream which tokenizes all the text in the provided Reader.- Specified by:
createComponentsin classTextAnalyzer- Returns:
- A TokenStream build from a ClassicTokenizer and appropriate filters for the language. See
-