Class NgramAnalyzer

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public final class NgramAnalyzer
    extends org.apache.lucene.analysis.Analyzer
    Author:
    HaslamJD, HARGRAVEJE
    • 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 
      Modifier and Type Field Description
      static int MAX_INPUT_SIZE  
      • Fields inherited from class org.apache.lucene.analysis.Analyzer

        GLOBAL_REUSE_STRATEGY, PER_FIELD_REUSE_STRATEGY
    • Constructor Summary

      Constructors 
      Constructor Description
      NgramAnalyzer​(int ngramLength)  
    • Constructor Detail

      • NgramAnalyzer

        public NgramAnalyzer​(int ngramLength)
    • Method Detail

      • createComponents

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