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
All Implemented Interfaces:
java.io.Closeable

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".


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.lucene.analysis.Analyzer
org.apache.lucene.analysis.Analyzer.GlobalReuseStrategy, org.apache.lucene.analysis.Analyzer.PerFieldReuseStrategy, org.apache.lucene.analysis.Analyzer.ReuseStrategy, org.apache.lucene.analysis.Analyzer.TokenStreamComponents
 
Constructor Summary
PersonalInformationLeadingNGramAnalyzer()
           
 
Method Summary
protected  org.apache.lucene.analysis.Analyzer.TokenStreamComponents createComponents(java.lang.String fieldName, java.io.Reader reader)
           
 
Methods inherited from class org.apache.lucene.analysis.Analyzer
close, getOffsetGap, getPositionIncrementGap, initReader, tokenStream, tokenStream
 
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

createComponents

protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents createComponents(java.lang.String fieldName,
                                                                                     java.io.Reader reader)
Specified by:
createComponents in class org.apache.lucene.analysis.Analyzer


Copyright © 2003-2014 Atlassian. All Rights Reserved.