com.atlassian.confluence.search.lucene.analyzers
Class PersonalInformationLeadingNGramAnalyzer

java.lang.Object
  extended by org.apache.lucene.analysis.Analyzer
      extended by 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".


Constructor Summary
PersonalInformationLeadingNGramAnalyzer()
           
 
Method Summary
 org.apache.lucene.analysis.TokenStream tokenStream(java.lang.String fieldName, java.io.Reader reader)
           
 
Methods inherited from class org.apache.lucene.analysis.Analyzer
getPositionIncrementGap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersonalInformationLeadingNGramAnalyzer

public PersonalInformationLeadingNGramAnalyzer()
Method Detail

tokenStream

public org.apache.lucene.analysis.TokenStream tokenStream(java.lang.String fieldName,
                                                          java.io.Reader reader)
Specified by:
tokenStream in class org.apache.lucene.analysis.Analyzer


Copyright © 2003-2010 Atlassian. All Rights Reserved.