Hmm, I can see some things you couldn't do with just using a tint field for the year. Or rather, some things that wouldn't be as convenient....
But this might help: http://lucene.apache.org/solr/5_2_0/solr-core/org/apache/solr/update/processor/ParseDateFieldUpdateProcessorFactory.html or you can also consider a http://wiki.apache.org/solr/ScriptUpdateProcessor Best, Erick On Fri, Jun 19, 2015 at 1:57 PM, levanDev <levandev9...@gmail.com> wrote: > Hello, > > Example csv doc has column 'just_the_year' and value '2010': > > With the Schema API I can tell the indexing process to treat 'just_the_year' > as a date field. > > I know that I can update the solrconfig.xml to correctly parse formats such > as MM/dd/yyyy (which is awesome) but has anyone tried to covert just the > year value to a full date ("2010-01-01T00:00:00Z") by updating the > solrconfig.xml? > > I know it's possible to import csv, do the date transformation, export again > and have everything work nicely but it would be cool to reduce the number of > steps involved and use the powerful date processor. > > Thank you, > Levan > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Parsing-dating-during-indexing-Year-Only-tp4213045.html > Sent from the Solr - User mailing list archive at Nabble.com.