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

CollapsingQParserPlugin breaks Tag/Exclude Faceting

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.6
    • Fix Version/s: 4.6.1, 6.0
    • Component/s: search
    • Labels:

      Description

      Trying to use CollapsingQParserPlugin with facet tagging throws an exception.

       ModifiableSolrParams params = new ModifiableSolrParams();
          params.add("q", "*:*");
          params.add("fq", "{!collapse field=group_s}");
          params.add("defType", "edismax");
          params.add("bf", "field(test_ti)");
          params.add("fq","{!tag=test_ti}test_ti:5");
          params.add("facet","true");
          params.add("facet.field","{!ex=test_ti}test_ti");
          assertQ(req(params), "*[count(//doc)=1]", "//doc[./int[@name='test_ti']='5']");
      

        Attachments

        1. SOLR-5416.patch
          6 kB
          David Boychuck
        2. SOLR-5416.patch
          2 kB
          Joel Bernstein
        3. SOLR-5416.patch
          10 kB
          Joel Bernstein
        4. CollapsingQParserPlugin.java
          29 kB
          Joel Bernstein
        5. SolrIndexSearcher.java
          86 kB
          Joel Bernstein
        6. TestCollapseQParserPlugin.java
          8 kB
          Joel Bernstein
        7. SOLR-5416.patch
          11 kB
          Joel Bernstein
        8. SOLR-5416.patch
          22 kB
          Joel Bernstein
        9. SOLR-5416.patch
          23 kB
          Joel Bernstein
        10. CollapseQParserPluginPatch-solr-4.5.1.patch
          46 kB
          David Boychuck

          Issue Links

            Activity

              People

              • Assignee:
                joel.bernstein Joel Bernstein
                Reporter:
                dboychuck David Boychuck
              • Votes:
                1 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 48h
                  48h
                  Remaining:
                  Remaining Estimate - 48h
                  48h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified