Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0, 6.0
    • Component/s: None
    • Labels:
      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
          131 kB
          Hoss Man
        2. SOLR-6351.patch
          132 kB
          Hoss Man
        3. SOLR-6351.patch
          129 kB
          Vitaliy Zhovtyuk
        4. SOLR-6351.patch
          122 kB
          Hoss Man
        5. SOLR-6351.patch
          120 kB
          Hoss Man
        6. SOLR-6351.patch
          117 kB
          Hoss Man
        7. SOLR-6351.patch
          107 kB
          Vitaliy Zhovtyuk
        8. SOLR-6351.patch
          67 kB
          Hoss Man
        9. SOLR-6351.patch
          73 kB
          Hoss Man
        10. SOLR-6351.patch
          67 kB
          Hoss Man
        11. SOLR-6351.patch
          66 kB
          Hoss Man
        12. SOLR-6351.patch
          78 kB
          Vitaliy Zhovtyuk
        13. SOLR-6351.patch
          78 kB
          Vitaliy Zhovtyuk
        14. SOLR-6351.patch
          76 kB
          Vitaliy Zhovtyuk
        15. SOLR-6351.patch
          69 kB
          Steve Molloy
        16. SOLR-6351.patch
          70 kB
          Steve Molloy
        17. SOLR-6351.patch
          66 kB
          Vitaliy Zhovtyuk
        18. SOLR-6351.patch
          59 kB
          Steve Molloy
        19. SOLR-6351.patch
          56 kB
          Vitaliy Zhovtyuk

          Issue Links

            Activity

              People

              • Assignee:
                hossman Hoss Man
                Reporter:
                hossman Hoss Man
              • Votes:
                0 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: