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

Add split parameter to timeseries Streaming Expression

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Resolved
    • None
    • 9.0
    • streaming expressions
    • None

    Description

      Currently the timeseries function only supports aggregations across the time dimension. This ticket will add the split parameter which will add a top level split by categorical field, to produce time lines per each split. The limit parameter will also be added and be applied only to split. The sort will always be desc on the first aggregation in the first iteration to keep the parameters simple.

      Sample syntax:

      timeseries(collection1, 
                 q="*:*", 
                 field="timefield", 
                 split="company", 
                 limit="10", 
                 gap="+1DAY", 
                 format="YYYY-dd-MM" ,
                 avg(price_f))
      

      The output of this can be easily pivoted into a matrix and correlated or clustered like the output of the facet2D function. The diff and minMaxScale functions already support operations over matrix rows so it's very easy to perform clustering etc.. on this output.

      Attachments

        1. Screen Shot 2021-04-07 at 12.57.54 PM.png
          334 kB
          Joel Bernstein
        2. Screen Shot 2021-04-07 at 12.59.24 PM.png
          290 kB
          Joel Bernstein
        3. Screen Shot 2021-04-07 at 12.59.40 PM.png
          412 kB
          Joel Bernstein
        4. SOLR-14916.patch
          28 kB
          Joel Bernstein
        5. SOLR-14916.patch
          19 kB
          Joel Bernstein
        6. SOLR-14916.patch
          11 kB
          Joel Bernstein

        Activity

          People

            jbernste Joel Bernstein
            jbernste Joel Bernstein
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: