Hi Bruno,

Did you consider using a range facet with gap being 1 year? If that works for 
you, you can avoid reindexing altogether. 

https://solr.apache.org/guide/8_1/json-facet-api.html

Try specifying gap as "1YEARS" or "+1YEARS" (I forgot if plus sign was required 
or not)

Sincerely 
Ufuk Yilmaz

—

> On Jul 1, 2024, at 17:51, Bruno Mannina <bmann...@matheo-software.com> wrote:
> 
> Hi Solr Team,
> 
> 
> 
> Is it possible to create a copy field where the source is a date-time field
> to extract only the year ?
> 
> 
> 
> I have 2024-07-01T253:59:59Z for the date field and store/index a copy field
> with only 2024.
> 
> 
> 
> The goal is to have faceting only on Year information.
> 
> 
> 
> Note: I haven't the possibility to re-create my source files to index due to
> the huge volume (more than 15To of data).
> 
> Note2: my index is not yet build. 
> 
> 
> 
> Cordialement, Best Regards
> 
> Bruno Mannina
> 
> <http://www.matheo-software.com/> www.matheo-software.com
> 
> <http://www.patent-pulse.com/> www.patent-pulse.com
> 
> Mob. +33 0 634 421 817
> 
> 
> 
> 
> 
> -- 
> Cet e-mail a été vérifié par le logiciel antivirus d'Avast.
> www.avast.com

Reply via email to