|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.search.contentnames.lucene.LuceneQueryTokenizer
public class LuceneQueryTokenizer
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 | |
---|---|
LuceneQueryTokenizer(org.apache.lucene.analysis.Analyzer unstemmedAnalyzer)
|
Method Summary | |
---|---|
java.util.List<QueryToken> |
tokenize(java.lang.String query)
Produces query tokens from the specified query. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LuceneQueryTokenizer(org.apache.lucene.analysis.Analyzer unstemmedAnalyzer)
Method Detail |
---|
public java.util.List<QueryToken> tokenize(java.lang.String query)
QueryTokenizer
tokenize
in interface QueryTokenizer
query
- the query
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |