RE: Json faceting, aggregate numeric field by day?

2016-02-11 Thread Markus Jelsma
g > Subject: Re: Json faceting, aggregate numeric field by day? > > On Wed, Feb 10, 2016 at 5:21 AM, Markus Jelsma > <markus.jel...@openindex.io> wrote: > > Hi - if we assume the following simple documents: > > > > > > 2015-01-01T00:00:00Z > > 2 &g

Re: Json faceting, aggregate numeric field by day?

2016-02-11 Thread Yonik Seeley
On Thu, Feb 11, 2016 at 10:04 AM, Markus Jelsma wrote: > Thanks. But this yields an error in FacetModule: > > java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map > at >

Re: Json faceting, aggregate numeric field by day?

2016-02-11 Thread Yonik Seeley
On Wed, Feb 10, 2016 at 5:21 AM, Markus Jelsma wrote: > Hi - if we assume the following simple documents: > > > 2015-01-01T00:00:00Z > 2 > > > 2015-01-01T00:00:00Z > 4 > > > 2015-01-02T00:00:00Z > 3 > > > 2015-01-02T00:00:00Z > 7 > > > Can i get

Re: Json faceting, aggregate numeric field by day?

2016-02-11 Thread Tom Evans
On Wed, Feb 10, 2016 at 12:13 PM, Markus Jelsma wrote: > Hi Tom - thanks. But judging from the article and SOLR-6348 faceting stats > over ranges is not yet supported. More specifically, SOLR-6352 is what we > would need. > > [1]:

Re: Json faceting, aggregate numeric field by day?

2016-02-11 Thread Yonik Seeley
On Thu, Feb 11, 2016 at 11:07 AM, Markus Jelsma wrote: > Hi - i was sending the following value for json.facet: > json.facet=by_day:{type : range, start : NOW-30DAY/DAY, end : NOW/DAY, gap : > "+1DAY", facet:{x : "avg(rank)"}} > > I now also notice i didn't include

RE: Json faceting, aggregate numeric field by day?

2016-02-11 Thread Markus Jelsma
16 16:13 > To: solr-user@lucene.apache.org > Subject: Re: Json faceting, aggregate numeric field by day? > > On Thu, Feb 11, 2016 at 10:04 AM, Markus Jelsma > <markus.jel...@openindex.io> wrote: > > Thanks. But this yields an error in FacetModule: > > &g

RE: Json faceting, aggregate numeric field by day?

2016-02-11 Thread Markus Jelsma
://issues.apache.org/jira/browse/SOLR-8673 Thanks again! Markus -Original message- > From:Yonik Seeley <ysee...@gmail.com> > Sent: Thursday 11th February 2016 17:12 > To: solr-user@lucene.apache.org > Subject: Re: Json faceting, aggregate numeric field by day? > > On Thu,

Json faceting, aggregate numeric field by day?

2016-02-10 Thread Markus Jelsma
Hi - if we assume the following simple documents: 2015-01-01T00:00:00Z 2 2015-01-01T00:00:00Z 4 2015-01-02T00:00:00Z 3 2015-01-02T00:00:00Z 7 Can i get a daily average for the field 'value' by day? e.g. 3.0 5.0 Reading the documentation, i don't think i can, or i

Re: Json faceting, aggregate numeric field by day?

2016-02-10 Thread Tom Evans
On Wed, Feb 10, 2016 at 10:21 AM, Markus Jelsma wrote: > Hi - if we assume the following simple documents: > > > 2015-01-01T00:00:00Z > 2 > > > 2015-01-01T00:00:00Z > 4 > > > 2015-01-02T00:00:00Z > 3 > > > 2015-01-02T00:00:00Z > 7 > > > Can i

RE: Json faceting, aggregate numeric field by day?

2016-02-10 Thread Markus Jelsma
found the tickets :) Markus -Original message- > From:Tom Evans <tevans...@googlemail.com> > Sent: Wednesday 10th February 2016 12:26 > To: solr-user@lucene.apache.org > Subject: Re: Json faceting, aggregate numeric field by day? > > On Wed, Feb 10, 2016 at