There's nothing automatic that'll make a "best guess" about turning some substring of the incoming field into a date.
You could create a custom update component to handle this case, or you could massage the data on the ingestion side to populate this field, but it'll be custom code one way or the other. Best, Erick On Mon, Mar 2, 2015 at 10:00 AM, Mirko Torrisi <mirko.torr...@ucdconnect.ie> wrote: > Hi folks, > > Hopefully this is an easy question but I couldn't do it after several > hours.. > > I created a new field (adding <field name="date" type="date" indexed="true" > stored="true"/>) and I'd like to fill out it using the filename or the file > path. > The file names are like: TEXT_CRE_YYYYMMGG_X-XXX-XXX.txt or > TEXT_CRE_YYYYMMGG_X-XXX.txt (where every X are random numbers). > The files are divided in directory following this rule: > /YYYY/MM/**filename**. > > I don't know which way is easier (filename or path). I'd like to use a date > field type to be able to use some group functions. > > > Thank in advance. > Have a nice week, > > Mirko > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org