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

Makes StatsStream implement Expressible interface

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Implemented
    • 6.0
    • 6.0
    • SolrJ

    Description

      Adds expression support to the Stats stream. With this it will now be possible to express an stats stream as

      stats(
        collection1, q=*:*, fl="fieldA,fieldB,fieldInt,fieldFloat",
        sum(fieldInt), 
        sum(fieldFloat), 
        min(fieldInt), 
        min(fieldFloat), 
        max(fieldInt), 
        max(fieldFloat), 
        avg(fieldInt), 
        avg(fieldFloat), 
        count(*)
      )
      

      You can collect stats on any supported metric and use full metric features. Ie, when SOLR-8185 is committed you can then include operations in the metrics.

      Attachments

        1. SOLR-8268.patch
          12 kB
          Dennis Gove

        Issue Links

          Activity

            People

              dpgove Dennis Gove
              dpgove Dennis Gove
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: