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

Facet count incorrect when duplicate facet queries (facet.query) are specified

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 4.7.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      A request like:

      facet=true&facet.query=test correctly returns

      {
        "facet_counts": {
           "facet_queries": {
              "test": 3
           }
        }
      } 
      

      But, specifying the facet.query more than once like facet=true&facet.query=test&facet.query=test will sum the results of both queries, returning double the correct count.

      {
        "facet_counts": {
           "facet_queries": {
              "test": 6
           }
        }
      } 
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                smerchek Scott Smerchek
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: