java.lang.Object
org.apache.lucene.analysis.Analyzer
com.atlassian.confluence.impl.search.v2.lucene.analysis.analyzer.ngram.NGramAnalyzer
All Implemented Interfaces:
Closeable, AutoCloseable

public class NGramAnalyzer extends org.apache.lucene.analysis.Analyzer
Analyzer which uses an NGram tokenizer
Since:
8.8
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.lucene.analysis.Analyzer

    org.apache.lucene.analysis.Analyzer.GlobalReuseStrategy, org.apache.lucene.analysis.Analyzer.PerFieldReuseStrategy, org.apache.lucene.analysis.Analyzer.ReuseStrategy, org.apache.lucene.analysis.Analyzer.TokenStreamComponents
  • Constructor Summary

    Constructors
    Constructor
    Description
    NGramAnalyzer(int min, int max, boolean edge)
     
  • Method Summary

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

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

    close, getOffsetGap, getPositionIncrementGap, initReader, tokenStream, tokenStream

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NGramAnalyzer

      public NGramAnalyzer(int min, int max, boolean edge)
  • Method Details

    • createComponents

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