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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to