Class ExactAnalyzerDescriptor

java.lang.Object
com.atlassian.confluence.plugins.index.api.ExactAnalyzerDescriptor
All Implemented Interfaces:
AnalyzerDescriptorProvider, MappingAnalyzerDescriptor

public class ExactAnalyzerDescriptor extends Object implements MappingAnalyzerDescriptor
Analyzer that supports exact matching. Use when indexing for fields which should support exact matches or when searching for fields which support exact matches.
Since:
8.6
  • Field Details

    • REGEX_REMOVE_PUNCTUATION

      public static final String REGEX_REMOVE_PUNCTUATION
      This regex is hideous, but is faster than the simpler one This regex captures all characters between the first non-whitespace/non-punctuation character and the last non-whitespace/non-punctuation character For example, " CONFSRVDEV-XYZ123!" will be captured as "CONFSRVDEV-XYZ123", it also works with unicode characters such as Japanese symbols The exact search index will store both the original token "CONFSRVDEV-XYZ123!" and the captured token "CONFSRVDEV-XYZ123", so exact searches will work with both
      See Also:
    • PATTERN_REMOVE_PUNCTUATION

      public static final Pattern PATTERN_REMOVE_PUNCTUATION
      Pre-compiled pattern for REGEX_REMOVE_PUNCTUATION for better performance(?) Using this pattern instead of compiling the regex each time should improve performance.
    • UNICODE_WHITESPACES

      public static final List<String> UNICODE_WHITESPACES
    • LUCENE_UNICODE_WHITESPACES

      public static final List<String> LUCENE_UNICODE_WHITESPACES
    • OS_UNICODE_WHITESPACES

      public static final List<String> OS_UNICODE_WHITESPACES
  • Constructor Details

    • ExactAnalyzerDescriptor

      public ExactAnalyzerDescriptor()
  • Method Details