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

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)


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

PersonalInformationNGramAnalyzer

public PersonalInformationNGramAnalyzer()
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.