lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Furkan KAMACI <furkankam...@gmail.com>
Subject Re: Aggregate Values Inside a Facet Range
Date Fri, 04 Nov 2016 20:40:52 GMT
Yes, it works with hours too. You can run a sum function each hour facet
which is named as bucket.

On Nov 4, 2016 10:14 PM, "William Bell" <billnbell@gmail.com> wrote:

> How about hours?
>
> NOW+1HR
> NOW+2HR
> NOW+12HR
> NOW-4HR
>
> Can we add that?
>
>
> On Fri, Nov 4, 2016 at 12:25 PM, Furkan KAMACI <furkankamaci@gmail.com>
> wrote:
>
> > I have documents like that
> >
> > id:5
> > timestamp:NOW //pseudo date representation
> > count:13
> >
> > id:4
> > timestamp:NOW //pseudo date representation
> > count:3
> >
> > id:3
> > timestamp:NOW-1DAY //pseudo date representation
> > count:21
> >
> > id:2
> > timestamp:NOW-1DAY //pseudo date representation
> > count:29
> >
> > id:1
> > timestamp:NOW-3DAY //pseudo date representation
> > count:4
> >
> > When I want to facet last 3 days data by timestamp its OK. However my
> need
> > is that:
> >
> > facets:
> >     TODAY: 16 //pseudo representation
> >     TODAY - 1: 50 //pseudo date representation
> >     TODAY - 2: 0 //pseudo date representation
> >     TODAY - 3: 4 //pseudo date representation
> >
> > I mean, I have to facet by dates and aggregate values inside that facet
> > range. Is it possible to do that without multiple queries at Solr?
> >
> > Kind Regards,
> > Furkan KAMACI
> >
>
>
>
> --
> Bill Bell
> billnbell@gmail.com
> cell 720-256-8076
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message