diff --git a/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestCorePlusExtensionsParser.java b/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestCorePlusExtensionsParser.java index 35f28ef1103..8b096170625 100644 --- a/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestCorePlusExtensionsParser.java +++ b/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestCorePlusExtensionsParser.java @@ -21,6 +21,7 @@ import org.apache.lucene.search.Query; public class TestCorePlusExtensionsParser extends TestCorePlusQueriesParser { + @Override protected CoreParser newCoreParser(String defaultField, Analyzer analyzer) { return new CorePlusExtensionsParser(defaultField, analyzer); } diff --git a/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestCorePlusQueriesParser.java b/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestCorePlusQueriesParser.java index 7e58c47c24b..a91800fd763 100644 --- a/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestCorePlusQueriesParser.java +++ b/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestCorePlusQueriesParser.java @@ -21,6 +21,7 @@ import org.apache.lucene.search.Query; public class TestCorePlusQueriesParser extends TestCoreParser { + @Override protected CoreParser newCoreParser(String defaultField, Analyzer analyzer) { return new CorePlusQueriesParser(defaultField, analyzer); }