public class ConfluenceFilenameAnalyzer
extends org.apache.lucene.analysis.Analyzer
Since the ConfluenceAnalyzer
does not handle filenames very well, we have a different Analyzer for that
field.
Example:
File_Name.java will be tokenized into [file][name][java]
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 |
---|
ConfluenceFilenameAnalyzer(ConfluenceAnalyzer confluenceAnalyzer) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.lucene.analysis.Analyzer.TokenStreamComponents |
createComponents(String fieldName,
Reader reader) |
public ConfluenceFilenameAnalyzer(ConfluenceAnalyzer confluenceAnalyzer)
Copyright © 2003–2021 Atlassian. All rights reserved.