Solr
  1. Solr
  2. SOLR-585

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      The ResponseBuilder never gets it's QParser set.

      I believe the fix is:

      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();
      

      but will test it first!

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Grant Ingersoll
            Reporter:
            Grant Ingersoll
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development