Class OakAnalyzer

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class OakAnalyzer
    extends Analyzer
    The default Lucene Analyzer used in Oak.
    • Constructor Detail

      • OakAnalyzer

        public OakAnalyzer​(Version matchVersion)
        Creates a new OakAnalyzer
        Parameters:
        matchVersion - Lucene version to match See above
      • OakAnalyzer

        public OakAnalyzer​(Version matchVersion,
                           boolean indexOriginalTerm)
        Create a new OakAnalyzer with configurable flag to preserve original term being analyzed too.
        Parameters:
        matchVersion - Lucene version to match See above
        indexOriginalTerm - flag to setup analyzer such that WordDelimiterFilter.PRESERVE_ORIGINAL is set to configure word delimiter