Consider a range facet where you specify a start date, end date and "gap". The "date math" bits allow you to specify gaps like +1HOUR, +1DAY etc.
https://lucene.apache.org/solr/guide/7_4/faceting.html Best, Erick On Fri, Jul 13, 2018 at 3:39 AM, Andrea Gazzarini <a.gazzar...@sease.io> wrote: > You're welcome, > but keep in mind what Erik said: it seems you don't need that information > at "view" level so maybe with range faceting you could get what you need > without creating additional (and redundant) fields. > > Andrea > > Il ven 13 lug 2018, 07:04 Anil <anilk...@gmail.com> ha scritto: > >> Thanks Andrea. i will write update processor in index pipe line. >> >> I feel this is very good feature to support. >> >> Thanks, >> Anil >> >> On 12 July 2018 at 22:59, Andrea Gazzarini <a.gazzar...@sease.io> wrote: >> >> > Hi Anil, >> > The copy Field directive is not what you're looking for because it >> doesn't >> > change the stored value of a field. >> > >> > What you need is an Update Request Processor, which is a kind of >> > interceptor in the indexing chain (i.e. It allows you to change an >> incoming >> > document before it gets indexed). >> > Unfortunately, as far as I know there's not an available processor for >> > doing what you need in the example you described, but consider that >> writing >> > a new processor is a trivial thing. >> > >> > Andrea >> > >> > Il gio 12 lug 2018, 19:23 Anil <anilk...@gmail.com> ha scritto: >> > >> > > HI, >> > > >> > > i have a date field which needs to copied to different field with >> > different >> > > format/value. is there any way to achieve this using copy field ? or >> > needs >> > > to be done when creating solr document itself. >> > > >> > > lets say createdDate is 10-23-2017 10:15:00, it needs to be copied to >> > > transformedDate field as 10-23-2017. >> > > >> > > please help. thanks. >> > > >> > > Regards, >> > > Anil >> > > >> > >>