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

CollapsingQParserPlugin breaks Tag/Exclude Faceting

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.6
    • 4.6.1, 6.0
    • search

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

        Issue Links

          Activity

            People

              jbernste Joel Bernstein
              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