Details

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

    Description

      Stats component currently computes all stats (except for one) every time because they are relatively cheap, and in some cases dependent on eachother for distrib computation – but if we start layering stats on other things it becomes unnecessarily expensive to compute all the stats when they just want the "sum" (and it will definitely become excessively verbose in the responses).

      The plan here is to use local params to make this configurable. All of the existing stat options could be modeled as a simple boolean param, but future params (like percentiles) might take in a more complex param value...

      Example:

      stats.field={!min=true max=true percentiles='99,99.999'}price
      stats.field={!mean=true}weight
      

      Attachments

        1. SOLR-6349___bad_idea_broken.patch
          19 kB
          Chris M. Hostetter
        2. SOLR-6349-tflobbe.patch
          16 kB
          Tomas Eduardo Fernandez Lobbe
        3. SOLR-6349-tflobbe.patch
          16 kB
          Tomas Eduardo Fernandez Lobbe
        4. SOLR-6349-tflobbe.patch
          21 kB
          Tomas Eduardo Fernandez Lobbe
        5. SOLR-6349-xu.patch
          23 kB
          Xu Zhang
        6. SOLR-6349-xu.patch
          30 kB
          Xu Zhang
        7. SOLR-6349-xu.patch
          37 kB
          Xu Zhang
        8. SOLR-6349-xu.patch
          55 kB
          Xu Zhang
        9. SOLR-6349.patch
          59 kB
          Chris M. Hostetter
        10. SOLR-6349.patch
          63 kB
          Chris M. Hostetter
        11. SOLR-6349.patch
          77 kB
          Chris M. Hostetter
        12. SOLR-6349.patch
          83 kB
          Chris M. Hostetter
        13. make-data-and-queries.pl
          2 kB
          Chris M. Hostetter
        14. SOLR-6349.patch
          87 kB
          Chris M. Hostetter
        15. SOLR-6349.patch
          93 kB
          Chris M. Hostetter
        16. make-data-and-queries.pl
          2 kB
          Chris M. Hostetter
        17. make-data-and-queries.pl
          3 kB
          Chris M. Hostetter
        18. SOLR-6349.patch
          135 kB
          Chris M. Hostetter

        Issue Links

          Activity

            People

              hossman Chris M. Hostetter
              hossman Chris M. Hostetter
              Votes:
              2 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: