lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandre Rafalovitch <>
Subject Re: Create field date using name file
Date Mon, 02 Mar 2015 17:53:47 GMT
So, what do you have already?

Did you get as far as having a Solr document that has a full name as
one of the fields and you just want to extract the date portion into a
separate field?

If so, your best bet is probably a custom UpdateRequestProcessor chain that will
1) Copy filename field to date field
2) Transform it with a regular expression to just leave the date part
3) Map it to date using custom format (see schemaless configs for one of those)

Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter:

On 2 March 2015 at 12:44, Mirko Torrisi <> wrote:
> I forgot to add that the txt files are divided in directory following this
> rule: /YYYY/MM/**files**.
> Regards,
> Mirko

View raw message