ResponseBuilder.getQParser() is always null b/c it never gets set
-----------------------------------------------------------------

                 Key: SOLR-585
                 URL: https://issues.apache.org/jira/browse/SOLR-585
             Project: Solr
          Issue Type: Bug
            Reporter: Grant Ingersoll
            Assignee: Grant Ingersoll
            Priority: Minor


The ResponseBuilder never gets it's QParser set.

I believe the fix is:
{code}Index: src/java/org/apache/solr/handler/component/QueryComponent.java
===================================================================
--- src/java/org/apache/solr/handler/component/QueryComponent.java      
(revision 660920)
+++ src/java/org/apache/solr/handler/component/QueryComponent.java      
(working copy)
@@ -80,7 +80,7 @@
       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(org.apache.solr.common.params.CommonParams.FQ);
       if (fqs!=null && fqs.length!=0) {
         List<Query> filters = rb.getFilters();
{code}

but will test it first!

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to