Class IndexAnalyzers

  • All Implemented Interfaces:, java.lang.AutoCloseable, IndexComponent

    public final class IndexAnalyzers
    extends AbstractIndexComponent
    IndexAnalyzers contains a name to analyzer mapping for a specific index. This class only holds analyzers that are explicitly configured for an index and doesn't allow access to individual tokenizers, char or token filter.
    See Also:
    • Method Detail

      • get

        public NamedAnalyzer get​(java.lang.String name)
        Returns an analyzer mapped to the given name or null if not present
      • getNormalizer

        public NamedAnalyzer getNormalizer​(java.lang.String name)
        Returns a normalizer mapped to the given name or null if not present
      • getWhitespaceNormalizer

        public NamedAnalyzer getWhitespaceNormalizer​(java.lang.String name)
        Returns a normalizer that splits on whitespace mapped to the given name or null if not present
      • getDefaultIndexAnalyzer

        public NamedAnalyzer getDefaultIndexAnalyzer()
        Returns the default index analyzer for this index
      • getDefaultSearchAnalyzer

        public NamedAnalyzer getDefaultSearchAnalyzer()
        Returns the default search analyzer for this index
      • getDefaultSearchQuoteAnalyzer

        public NamedAnalyzer getDefaultSearchQuoteAnalyzer()
        Returns the default search quote analyzer for this index
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface