Solr
  1. Solr
  2. SOLR-680

StatsComponent - get min, max, sum, qt, avg of number fields

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4
    • Component/s: search
    • Labels:
      None

      Description

      StatsComponent - it returns min,max,sum,qt,avg of specified number fields:

      request parameters:
      &stats=on&stats.field=price

      <stats>
       <stats_fields>
         <lst name="price">
             <double name="min">10</double>
             <double name="max">30</double>
             <double name="avg">20</double>
             <double name="sum">60</double>
             <double name="qt">3</double>
         </lst>
       </stats_fields>
      </stats>
      

      WRT "stats", the component can output sum and avg, but not sd and var.

      USE CASE:
      StatsComponent can be used to get "market price" of DocSet e.g. rental housing site, package tour site.

      1. SOLR-680.patch
        15 kB
        Harish Agarwal
      2. SOLR-680.patch
        34 kB
        Ryan McKinley
      3. SOLR-680.patch
        28 kB
        Ryan McKinley
      4. SOLR-680.patch
        26 kB
        Ryan McKinley
      5. SOLR-680.patch
        22 kB
        Ryan McKinley
      6. SOLR-680.patch
        16 kB
        Ryan McKinley
      7. SOLR-680.patch
        12 kB
        Koji Sekiguchi
      8. SOLR-680-remove-bad-median-calculation.patch
        6 kB
        Ryan McKinley

        Issue Links

          Activity

          Koji Sekiguchi created issue -
          Koji Sekiguchi made changes -
          Field Original Value New Value
          Attachment SOLR-680.patch [ 12387741 ]
          Otis Gospodnetic made changes -
          Fix Version/s 1.4 [ 12313351 ]
          Ryan McKinley made changes -
          Attachment SOLR-680.patch [ 12391187 ]
          Ryan McKinley made changes -
          Attachment SOLR-680.patch [ 12391188 ]
          Ryan McKinley made changes -
          Attachment SOLR-680.patch [ 12391189 ]
          Ryan McKinley made changes -
          Attachment SOLR-680.patch [ 12391221 ]
          Ryan McKinley made changes -
          Attachment SOLR-680.patch [ 12391480 ]
          Ryan McKinley made changes -
          Link This issue relates to SOLR-817 [ SOLR-817 ]
          Ryan McKinley made changes -
          Assignee Ryan McKinley [ ryantxu ]
          Ryan McKinley made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Ryan McKinley made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Ryan McKinley made changes -
          Ryan McKinley made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Harish Agarwal made changes -
          Attachment SOLR-680.patch [ 12400054 ]
          Grant Ingersoll made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Ryan McKinley
              Reporter:
              Koji Sekiguchi
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development