XY question not withstanding, this is exactly the sort of thing one might
want to do in their indexing pipeline. For example:

https://github.com/nsoft/jesterj/blob/master/code/ingest/src/main/java/org/jesterj/ingest/processors/SimpleDateTimeReformatter.java

On Thu, Jul 12, 2018 at 1:34 PM, Erick Erickson <erickerick...@gmail.com>
wrote:

> This seems like an XY problem, you've asked how to do X without
> explaining _why_ (the Y).
>
> If this is just because you want to search the field without having
> to specify the full string, consider a DateRangeField.
>
> Best,
> Erick
>
> On Thu, Jul 12, 2018 at 10:22 AM, Anil <anilk...@gmail.com> wrote:
> > 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
>



-- 
http://www.the111shift.com

Reply via email to