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

Makes StatsStream implement Expressible interface

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Implemented
    • Affects Version/s: 6.0
    • Fix Version/s: 6.0
    • Component/s: SolrJ
    • Labels:

      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.

      1. SOLR-8268.patch
        12 kB
        Dennis Gove

        Issue Links

          Activity

          Hide
          dpgove Dennis Gove added a comment -

          Fully implemented. All relevant tests pass. New necessary tests added.

          This is a relatively minor change with full backward compatibility. I'll let this sit for today but if my schedule holds I intend to commit to trunk tonight. Unless issues/comments come up, of course.

          Show
          dpgove Dennis Gove added a comment - Fully implemented. All relevant tests pass. New necessary tests added. This is a relatively minor change with full backward compatibility. I'll let this sit for today but if my schedule holds I intend to commit to trunk tonight. Unless issues/comments come up, of course.
          Hide
          joel.bernstein Joel Bernstein added a comment -

          Looks good.

          Show
          joel.bernstein Joel Bernstein added a comment - Looks good.
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 1713749 from dpgove@apache.org in branch 'dev/trunk'
          [ https://svn.apache.org/r1713749 ]

          SOLR-8268: StatsStream now implements the Expressible interface

          Show
          jira-bot ASF subversion and git services added a comment - Commit 1713749 from dpgove@apache.org in branch 'dev/trunk' [ https://svn.apache.org/r1713749 ] SOLR-8268 : StatsStream now implements the Expressible interface

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development