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

Statistics tag exclusion doesn't work with pivots.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 6.1
    • None
    • None

    Description

      The ability to exclude certain statistics being affected during filtering with tags, as addressed in this issue: https://issues.apache.org/jira/browse/SOLR-3177 is working, but when the statistics is applied to pivots - it doesn't.

      With parameters like these:

      ```
      "stats.field": ["

      {!tag=studies_stats min=true max=true ex=studies_range}

      value", "

      {!min=true max=true ex=studies_range}

      value"],

      "facet.pivot": "

      {!stats=studies_stats }

      category,type,unit"
      ```

      The query like this:

      ```
      fq=

      {!tag=studies_range}

      -(type:T1 AND category:C1 AND -value:[1000 TO 3000])
      ```
      does not affect the global response's `stats_field` (correct), but it does affect the `stats_field`inside each of the pivot components (in the response).

      Attachments

        Activity

          People

            Unassigned Unassigned
            theJonan Ivan Georgiev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: