: Invalid Date Math String:'2011-04-22T05:35:37Z ' ... : I notice the trailing spaces but in my document they are not present: ... : <maindocdate_dt><![CDATA[2011-04-22T05:35:37Z]]></maindocdate_dt> ... : I am adding the field to the document with: ... : document.addField(element, sb); //sb is a string
There is at least one step missing in your process -- the XML you showed us isn't the Solr XML Message format, so it can't be the poutput of using the StreamingUpdateSolrServer after you build up SOlrInputDocuments. i suspect you have some code that parses your XML, and in that code you call document.addField ... have you verified in that parsing/building code exactly what's going on and what the value of "sb" is (ie: via debugger) ? -Hoss