Interface SearchQueryTokenizer
- All Known Implementing Classes:
LuceneSearchQueryTokenizer
public interface SearchQueryTokenizer
Breaks a text of a text field into tokens. A plugin can obtain it via
ComponentImport
.- Since:
- 7.0
-
Method Summary
Modifier and TypeMethodDescriptiontokenize
(String fieldName, AnalyzerDescriptorProvider analyzerProvider, String text) Tokenize a string using the given analyzer.Tokenize a string using the default analyzer provided by Confluence.
-
Method Details
-
tokenize
Collection<String> tokenize(String fieldName, AnalyzerDescriptorProvider analyzerProvider, String text) Tokenize a string using the given analyzer.- Parameters:
fieldName
- field nametext
- text to be broken into tokensanalyzerProvider
- information about how to tokenized- Returns:
- stream of tokens
-
tokenize
Tokenize a string using the default analyzer provided by Confluence.- Parameters:
fieldName
- field nametext
- text to be broken into tokens- Returns:
- stream of tokens
-