Class LuceneQueryTokenizer
java.lang.Object
com.atlassian.confluence.impl.search.contentnames.lucene.LuceneQueryTokenizer
- All Implemented Interfaces:
QueryTokenizer
The purpose of this class is to wrap the tokens emitted from lucene analysis inside our own
QueryToken
s so
that we can tag some additional meaning. Although we could have modified the 'type' property of lucene tokens, we
would have had to tinker with all the analyzers for each of the languages we have, which is not feasible.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionProduces query tokens from the specified query.
-
Constructor Details
-
LuceneQueryTokenizer
public LuceneQueryTokenizer(org.apache.lucene.analysis.Analyzer unstemmedAnalyzer)
-
-
Method Details
-
tokenize
Description copied from interface:QueryTokenizer
Produces query tokens from the specified query.- Specified by:
tokenize
in interfaceQueryTokenizer
- Parameters:
query
- the query- Returns:
- query tokens from the specified query. Returns empty list for null or empty query.
-