java.lang.Object
org.apache.lucene.analysis.Analyzer
org.hibernate.search.backend.lucene.analysis.impl.TokenizerChain
All Implemented Interfaces:
Closeable, AutoCloseable

public final class TokenizerChain extends org.apache.lucene.analysis.Analyzer
Inspired by Apache Solr's org.apache.solr.analysis.TokenizerChain.TokenizerChain
  • 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
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents
     
    initReader(String fieldName, Reader reader)
     
    protected Reader
     
    protected org.apache.lucene.analysis.TokenStream
    normalize(String fieldName, org.apache.lucene.analysis.TokenStream in)
     
     

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

    attributeFactory, close, getOffsetGap, getPositionIncrementGap, getReuseStrategy, normalize, tokenStream, tokenStream

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • initReader

      public Reader initReader(String fieldName, Reader reader)
      Overrides:
      initReader in class org.apache.lucene.analysis.Analyzer
    • createComponents

      protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents createComponents(String fieldName)
      Specified by:
      createComponents in class org.apache.lucene.analysis.Analyzer
    • initReaderForNormalization

      protected Reader initReaderForNormalization(String fieldName, Reader reader)
      Overrides:
      initReaderForNormalization in class org.apache.lucene.analysis.Analyzer
    • normalize

      protected org.apache.lucene.analysis.TokenStream normalize(String fieldName, org.apache.lucene.analysis.TokenStream in)
      Overrides:
      normalize in class org.apache.lucene.analysis.Analyzer
    • toString

      public String toString()
      Overrides:
      toString in class Object