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

java.lang.Object
  extended by org.apache.lucene.analysis.Analyzer
      extended by com.atlassian.confluence.search.lucene.analyzers.PersonalInformationNGramAnalyzer

public class PersonalInformationNGramAnalyzer
extends org.apache.lucene.analysis.Analyzer

Analyzer for producing an n-gram token stream from aggregated user information (consisting of username and fullname).

For example: "barney rubble" produces "bar arn rne ney rub ubb bbl ble" (assuming an n-gram size of 3)


Constructor Summary
PersonalInformationNGramAnalyzer()
           
 
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

PersonalInformationNGramAnalyzer

public PersonalInformationNGramAnalyzer()
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-2009 Atlassian Pty Ltd. All Rights Reserved.