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

Facet count not working when tagging & excluding filters for range facets with group.facet true

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.2.1, 4.3, 6.0
    • Component/s: search
    • Labels:
      None
    • Environment:

      12.0.0 Darwin Kernel Version 12.0.

      Description

      I'm creating a range facet and I want to support multiple selection for it. However, when I set group.facet on the tags/exclusions for filters stop working. In other words, I only get the facet values for the filtered documents. The following link works:

      http://localhost:8983/solr/catalogPreview/select?q=*:*&facet=true&wt=xml&rows=0&facet.range=

      {!ex%3DsalePrice}salePrice&f.salePrice.facet.range.gap=75&f.salePrice.facet.range.start=100&f.salePrice.facet.range.end=600&group=true&group.field=productId&f.salePrice.facet.mincount=1&fq={!tag=salePrice}salePrice:[100%20TO%20175]&group.facet=false

      The following doesn't:

      http://localhost:8983/solr/catalogPreview/select?q=*:*&facet=true&wt=xml&rows=0&facet.range={!ex%3DsalePrice}

      salePrice&f.salePrice.facet.range.gap=75&f.salePrice.facet.range.start=100&f.salePrice.facet.range.end=600&group=true&group.field=productId&f.salePrice.facet.mincount=1&fq=

      {!tag=salePrice}

      salePrice:[100%20TO%20175]&group.facet=true

      1. SOLR-3819.patch
        3 kB
        Petter Remen

        Issue Links

          Activity

          Hide
          thetaphi Uwe Schindler added a comment -

          Closed after release.

          Show
          thetaphi Uwe Schindler added a comment - Closed after release.
          Hide
          yseeley@gmail.com Yonik Seeley added a comment -

          committed. Thanks Petter!

          Show
          yseeley@gmail.com Yonik Seeley added a comment - committed. Thanks Petter!
          Hide
          petterremen Petter Remen added a comment - - edited

          This patch works for me. Tested against trunk and 4.2

          Show
          petterremen Petter Remen added a comment - - edited This patch works for me. Tested against trunk and 4.2
          Hide
          petterremen Petter Remen added a comment -

          The same bug also applies when replacing facet.range with a facet.query

          The following does not work as expected on my data

          q=*:*&
          fq={!tag=code}code:ABCDE&
          facet=true&
          facet.query={!ex=code}*:*&
          group=true&
          group.facet=true&
          group.field=id
          rows=0&
          
          Show
          petterremen Petter Remen added a comment - The same bug also applies when replacing facet.range with a facet.query The following does not work as expected on my data q=*:*& fq={!tag=code}code:ABCDE& facet=true& facet.query={!ex=code}*:*& group=true& group.facet=true& group.field=id rows=0&
          Hide
          ggn06awu Mark Beeby added a comment -

          This is an issue we've encountered in our latest project too, and is still present in the current SOLR 4.1 release. Has anyone tried using this combination of excludes, facet queries and grouping and managed to get them working?

          It's rather a show stopper for us, anything we can do to encourage a fix, we'd be happy to pay if necessary?

          Show
          ggn06awu Mark Beeby added a comment - This is an issue we've encountered in our latest project too, and is still present in the current SOLR 4.1 release. Has anyone tried using this combination of excludes, facet queries and grouping and managed to get them working? It's rather a show stopper for us, anything we can do to encourage a fix, we'd be happy to pay if necessary?

            People

            • Assignee:
              yseeley@gmail.com Yonik Seeley
              Reporter:
              rmerizalde Ricardo Merizalde
            • Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development