You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Gus Heck (JIRA)" <ji...@apache.org> on 2018/11/23 16:03:00 UTC

[jira] [Created] (SOLR-13010) max rollup for dates

Gus Heck created SOLR-13010:
-------------------------------

             Summary: max rollup for dates
                 Key: SOLR-13010
                 URL: https://issues.apache.org/jira/browse/SOLR-13010
             Project: Solr
          Issue Type: Improvement
      Security Level: Public (Default Security Level. Issues are Public)
          Components: streaming expressions
    Affects Versions: master (8.0)
            Reporter: Gus Heck


Sometimes it's useful to know the maximum or minimum value of a date field that's passing through a rollup() command. For example in the following expression, the effect would be to portray the freshness of the data for the bucket on which the counts have been generated.
{code:java}
rollup(search(activate2018-tra, q="racecar_id:*", fl="id,presented_date,racecar_id", sort="racecar_id asc",rows=99999),over=racecar_id, max(presented_date),count(*)){code}
 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org