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".
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 and Description |
---|
PersonalInformationLeadingNGramAnalyzer() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents |
createComponents(String fieldName,
Reader reader) |
Copyright © 2003–2015 Atlassian. All rights reserved.