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

public class ExactQueryAnalyzer extends org.apache.lucene.analysis.Analyzer
Only Tokenizer by space
Since:
9.1.0
  • 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
    ExactQueryAnalyzer(org.apache.lucene.util.Version version)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents
    createComponents(String fieldName, Reader reader)
    Only create tokens by whitespace, and lowercase each token.

    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

    • ExactQueryAnalyzer

      public ExactQueryAnalyzer(org.apache.lucene.util.Version version)
  • Method Details

    • createComponents

      protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents createComponents(String fieldName, Reader reader)
      Only create tokens by whitespace, and lowercase each token.

      e.g. "the Brown F@x *" -> {"the", "brown", "f@x", "*"}

      Specified by:
      createComponents in class org.apache.lucene.analysis.Analyzer