You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2010/01/04 10:17:47 UTC
[Solr Wiki] Update of "DataImportHandlerFaq" by ShalinMangar
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "DataImportHandlerFaq" page has been changed by ShalinMangar.
The comment on this change is: Added workaround for dealing with invalid dates.
http://wiki.apache.org/solr/DataImportHandlerFaq?action=diff&rev1=16&rev2=17
--------------------------------------------------
Note that "convertType" attribute uses the target schema field's type name to convert the value returned by the result set. Therefore, any transformers being used on the entity should be aware of the type information.
+ === Invalid dates (e.g. "0000-00-00") in my MySQL database cause my import to abort ===
+ Use &zeroDateTimeBehavior=convertToNull parameter in you JDBC connection string to avoid this.
+