Class ExactAnalyzerDescriptor
java.lang.Object
com.atlassian.confluence.plugins.index.api.ExactAnalyzerDescriptor
- All Implemented Interfaces:
AnalyzerDescriptorProvider
,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 Summary
FieldsModifier and TypeFieldDescriptionstatic final Pattern
Pre-compiled pattern for REGEX_REMOVE_PUNCTUATION for better performance(?) Using this pattern instead of compiling the regex each time should improve performance.static final String
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 bothFields inherited from interface com.atlassian.confluence.plugins.index.api.AnalyzerDescriptorProvider
EMPTY
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.confluence.plugins.index.api.MappingAnalyzerDescriptor
getAnalyzer
-
Field Details
-
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
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
-
LUCENE_UNICODE_WHITESPACES
-
OS_UNICODE_WHITESPACES
-
-
Constructor Details
-
ExactAnalyzerDescriptor
public ExactAnalyzerDescriptor()
-
-
Method Details