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(since="10.4", forRemoval=true) public class ThaiAnalyzer extends TextAnalyzer
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

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    final org.apache.lucene.analysis.Analyzer.TokenStreamComponents
    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, wrapStreamForWilcardSearchSupport

    Methods inherited from class org.apache.lucene.analysis.Analyzer

    attributeFactory, close, getOffsetGap, getPositionIncrementGap, getReuseStrategy, getVersion, initReader, initReaderForNormalization, normalize, normalize, setVersion, tokenStream, tokenStream

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      createComponents in class TextAnalyzer
      Returns:
      A TokenStream build from a ClassicTokenizer and appropriate filters for the language. See