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