diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt index 91650bc2b3f..92304ac7930 100644 --- a/lucene/CHANGES.txt +++ b/lucene/CHANGES.txt @@ -121,6 +121,9 @@ Bug Fixes fails to reflect a delete from IndexWriter.tryDeleteDocument (Reg, Mike McCandless) +* LUCENE-4994: Fix PatternKeywordMarkerFilter to have public constructor. + (Uwe Schindler) + Optimizations * LUCENE-4938: Don't use an unnecessarily large priority queue in IndexSearcher diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/PatternKeywordMarkerFilter.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/PatternKeywordMarkerFilter.java index 886f19f2d56..2e055bbdbb7 100644 --- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/PatternKeywordMarkerFilter.java +++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/PatternKeywordMarkerFilter.java @@ -42,7 +42,7 @@ public final class PatternKeywordMarkerFilter extends KeywordMarkerFilter { * @param pattern * the pattern to apply to the incoming term buffer **/ - protected PatternKeywordMarkerFilter(TokenStream in, Pattern pattern) { + public PatternKeywordMarkerFilter(TokenStream in, Pattern pattern) { super(in); this.matcher = pattern.matcher(""); }