Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.0, 6.0
    • None
    • None

    Description

      he goal here is basically flip the notion of "stats.facet" on it's head, so that instead of asking the stats component to also do some faceting (something that's never worked well with the variety of field types and has never worked in distributed mode) we instead ask the PivotFacet code to compute some stats X for each leaf in a pivot. We'll do this with the existing stats.field params, but we'll leverage the tag local param of the stats.field instances to be able to associate which stats we want hanging off of which facet.pivot

      Example...

      facet.pivot={!stats=s1}category,manufacturer
      stats.field={!key=avg_price tag=s1 mean=true}price
      stats.field={!tag=s1 min=true max=true}user_rating
      

      ...with the request above, in addition to computing the min/max user_rating and mean price (labeled "avg_price") over the entire result set, the PivotFacet component will also include those stats for every node of the tree it builds up when generating a pivot of the fields "category,manufacturer"

      Attachments

        1. SOLR-6351.patch
          56 kB
          Vitaliy Zhovtyuk
        2. SOLR-6351.patch
          59 kB
          Steve Molloy
        3. SOLR-6351.patch
          66 kB
          Vitaliy Zhovtyuk
        4. SOLR-6351.patch
          70 kB
          Steve Molloy
        5. SOLR-6351.patch
          69 kB
          Steve Molloy
        6. SOLR-6351.patch
          76 kB
          Vitaliy Zhovtyuk
        7. SOLR-6351.patch
          78 kB
          Vitaliy Zhovtyuk
        8. SOLR-6351.patch
          78 kB
          Vitaliy Zhovtyuk
        9. SOLR-6351.patch
          66 kB
          Chris M. Hostetter
        10. SOLR-6351.patch
          67 kB
          Chris M. Hostetter
        11. SOLR-6351.patch
          73 kB
          Chris M. Hostetter
        12. SOLR-6351.patch
          67 kB
          Chris M. Hostetter
        13. SOLR-6351.patch
          107 kB
          Vitaliy Zhovtyuk
        14. SOLR-6351.patch
          117 kB
          Chris M. Hostetter
        15. SOLR-6351.patch
          120 kB
          Chris M. Hostetter
        16. SOLR-6351.patch
          122 kB
          Chris M. Hostetter
        17. SOLR-6351.patch
          129 kB
          Vitaliy Zhovtyuk
        18. SOLR-6351.patch
          132 kB
          Chris M. Hostetter
        19. SOLR-6351.patch
          131 kB
          Chris M. Hostetter

        Issue Links

          Activity

            People

              hossman Chris M. Hostetter
              hossman Chris M. Hostetter
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: