Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-585: Set the QParser on the ResponseBuilder

Grant Ingersoll5b7185e330b4
diff --git a/CHANGES.txt b/CHANGES.txt
index 7e9ab369433..155fd8c9ba1 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -438,6 +438,8 @@ Bug Fixes
problems in Resin, and could potentially cause problems for customized
usages of SolrServlet.
+36. SOLR-585: Now sets the QParser on the ResponseBuilder (gsingers)
+
Other Changes
1. SOLR-135: Moved common classes to org.apache.solr.common and altered the
build scripts to make two jars: apache-solr-1.3.jar and
diff --git a/src/java/org/apache/solr/handler/component/QueryComponent.java b/src/java/org/apache/solr/handler/component/QueryComponent.java
index 74aaac2d656..dbed4bc96d6 100644
--- a/src/java/org/apache/solr/handler/component/QueryComponent.java
+++ b/src/java/org/apache/solr/handler/component/QueryComponent.java
@@ -81,6 +81,7 @@ public class QueryComponent extends SearchComponent
QParser parser = QParser.getParser(rb.getQueryString(), defType, req);
rb.setQuery( parser.getQuery() );
rb.setSortSpec( parser.getSort(true) );
+ rb.setQparser(parser);
String[] fqs = req.getParams().getParams(CommonParams.FQ);
if (fqs!=null && fqs.length!=0) {