diff --git a/src/java/org/apache/lucene/analysis/PerFieldAnalyzerWrapper.java b/src/java/org/apache/lucene/analysis/PerFieldAnalyzerWrapper.java index c70ddfcbbe0..996dfb3be89 100644 --- a/src/java/org/apache/lucene/analysis/PerFieldAnalyzerWrapper.java +++ b/src/java/org/apache/lucene/analysis/PerFieldAnalyzerWrapper.java @@ -73,4 +73,8 @@ public class PerFieldAnalyzerWrapper extends Analyzer { return analyzer.tokenStream(fieldName, reader); } + + public String toString() { + return "PerFieldAnalyzerWrapper(" + analyzerMap + ", default=" + defaultAnalyzer + ")"; + } }