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

        Attachments

          Issue Links

            Activity

              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: