You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by suhyunjeon <su...@gmail.com> on 2015/01/30 03:19:31 UTC

Change date field until minute to zero for group by

I got date fields like this.

{
   date:"2013-11-01T16:14:55.372Z",
   latency:1
},
{
   date:"2013-11-01T16:14:00.372Z",
   latency:6
},
{
   date:"013-11-01T16:15:17.496Z",
   latency:3
}

I want to see the count to group by the date field(until minutes)  like
that.

{
   date:"2013-11-01T16:14:55.372Z",
   latency:6
},
{
   date:"013-11-01T16:15:17.496Z",
   latency:3
}

So I have to change the date field format to Raw Query Parameters. 

How do I do? Help me please. It didn't work.

My Raw Query Parameters :
group=true&group.field=log_ts_tdt&group.facet=true&group.func=rint(div(ms(log_ts_tdt),mul(24,mul(60,mul(60,1000)))))




--
View this message in context: http://lucene.472066.n3.nabble.com/Change-date-field-until-minute-to-zero-for-group-by-tp4183042.html
Sent from the Solr - User mailing list archive at Nabble.com.