public class PerFieldAnalyzerWrapper extends Analyzer
This analyzer is used to facilitate scenarios where different
fields require different analysis techniques. Use {@link #addAnalyzer}
to add a non-default analyzer on a field name basis.
See TestPerFieldAnalyzerWrapper.java for example usage.
Fields Summary
private Analyzer
defaultAnalyzer
private Map
analyzerMap
Constructors Summary
public PerFieldAnalyzerWrapper(Analyzer defaultAnalyzer)
Constructs with default analyzer.
param
defaultAnalyzer Any fields not specifically
defined to use a different analyzer will use the one provided here.