Class TextAnalyzer

java.lang.Object
org.apache.lucene.analysis.Analyzer
com.atlassian.jira.issue.index.analyzer.TextAnalyzer
All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
BrazilianAnalyzer, BulgarianAnalyzer, CJKAnalyzer, CzechAnalyzer, EnglishAnalyzer, FrenchAnalyzer, GermanAnalyzer, GreekAnalyzer, ItalianAnalyzer, SimpleAnalyzer, StemmingAnalyzer, ThaiAnalyzer

@Deprecated(since="10.4", forRemoval=true) public abstract class TextAnalyzer extends org.apache.lucene.analysis.Analyzer
Deprecated, for removal: This API element is subject to removal in a future version.
since 10.4.
An Analyzer base class that provides the facility to apply the SubtokenFilter during indexing and duplicating the original tokens before any stemming filter is applied to support wildcard queries and exact phrase queries on document fields.
  • 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
    TextAnalyzer(boolean indexing)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract org.apache.lucene.analysis.Analyzer.TokenStreamComponents
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected org.apache.lucene.analysis.TokenStream
    wrapStreamForIndexing(org.apache.lucene.analysis.TokenStream input)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Applies a SubtokenFilter to the input token stream at document indexing time.
    protected org.apache.lucene.analysis.TokenStream
    wrapStreamForWilcardSearchSupport(org.apache.lucene.analysis.TokenStream input)
    Deprecated, for removal: This API element is subject to removal in a future version.
    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.

    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

    • TextAnalyzer

      public TextAnalyzer(boolean indexing)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • isIndexing

      public boolean isIndexing()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • wrapStreamForIndexing

      protected org.apache.lucene.analysis.TokenStream wrapStreamForIndexing(org.apache.lucene.analysis.TokenStream input)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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.
    • wrapStreamForWilcardSearchSupport

      protected org.apache.lucene.analysis.TokenStream wrapStreamForWilcardSearchSupport(org.apache.lucene.analysis.TokenStream input)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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.
    • createComponents

      public abstract org.apache.lucene.analysis.Analyzer.TokenStreamComponents createComponents(String fieldName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      createComponents in class org.apache.lucene.analysis.Analyzer