From 9f13bf671872d973684fe77e36373e9136645c48 Mon Sep 17 00:00:00 2001 From: Christine Poerschke Date: Mon, 18 Jul 2016 14:25:22 +0100 Subject: [PATCH] SOLR-9275: add defaultField protected field to queryparser/xml's CoreParser --- .../src/java/org/apache/lucene/queryparser/xml/CoreParser.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/CoreParser.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/CoreParser.java index 2dd00971659..98a878f8877 100644 --- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/CoreParser.java +++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/CoreParser.java @@ -33,6 +33,7 @@ import java.io.InputStream; */ public class CoreParser implements QueryBuilder { + protected String defaultField; protected Analyzer analyzer; protected QueryParser parser; protected QueryBuilderFactory queryFactory; @@ -59,6 +60,7 @@ public class CoreParser implements QueryBuilder { } protected CoreParser(String defaultField, Analyzer analyzer, QueryParser parser) { + this.defaultField = defaultField; this.analyzer = analyzer; this.parser = parser;