com.atlassian.confluence.search.lucene.analyzers
Class PersonalInformationLeadingNGramAnalyzer
java.lang.Object
org.apache.lucene.analysis.Analyzer
com.atlassian.confluence.search.lucene.analyzers.PersonalInformationLeadingNGramAnalyzer
public class PersonalInformationLeadingNGramAnalyzer
- extends org.apache.lucene.analysis.Analyzer
Analyzer for producing an n-gram token stream from aggregated user information (consisting of username and fullname).
This anlayzer returns an n-gram stream consisting of only the leading n-gram of each token.
For example: "barney rubble" produces "bar rub".
Fields inherited from class org.apache.lucene.analysis.Analyzer |
overridesTokenStreamMethod |
Methods inherited from class org.apache.lucene.analysis.Analyzer |
close, getOffsetGap, getPositionIncrementGap, getPreviousTokenStream, reusableTokenStream, setOverridesTokenStreamMethod, setPreviousTokenStream |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PersonalInformationLeadingNGramAnalyzer
public PersonalInformationLeadingNGramAnalyzer()
tokenStream
public org.apache.lucene.analysis.TokenStream tokenStream(String fieldName,
Reader reader)
- Specified by:
tokenStream
in class org.apache.lucene.analysis.Analyzer