lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc SCHNEIDER <>
Subject Format date before indexing it
Date Thu, 05 May 2011 09:51:12 GMT

I have to index records that have fields containing date.
This date can be : "2011", "2011-05", "2015-05-01". Trailing characters also
can be slashes.
I'd like to convert theses values into a valid date for Solr.

So my question is : what is the best way to achieve this?
1) Use solr.DateField and make my own filter to that I get the date in the
right format
2) Subclass solr.DateField ?

Thanks in advance,

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message