Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-585

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None
    • 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!

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            gsingers Grant Ingersoll
            gsingers Grant Ingersoll
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment