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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0
    • 4.2.1, 4.3, 6.0
    • search
    • None
    • 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

        1. SOLR-3819.patch
          3 kB
          Petter Remen

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: