lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandre Rafalovitch <arafa...@gmail.com>
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)

Regards,
   Alex.
----
Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter:
http://www.solr-start.com/


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

Mime
View raw message