On 6/2/2019 11:34 PM, derrick cui wrote:
I spent whole day to indexing my data to solr(8.0), but there is one field 
which type is pdate always failed.
error adding field 
'UpdateDate'='org.apache.solr.common.SolrInputField:UpdateDate=2019-06-03T05:22:14.842Z'
 msg=Invalid Date in Date Math 
String:'org.apache.solr.common.SolrInputField:UpdateDate=2019-06-03T05:22:14.842Z',,
 retry=0 commError=false errorCode=400

If that whole string (including the org.apache.solr stuff) is the input, it will fail. The value will need to be the ISO date format, starting with the year, including the T, and ending with Z.

I have put timezone in the string, please help,

As far as I know, you can't do that. Solr only handles dates in UTC - no timezone.

There is one place where Solr has a timezone configurable -- that's for date math. So that Solr knows what time a day starts when it is doing NOW/DAY, NOW/WEEK, etc. Other than that, everything is ALWAYS in UTC.

Thanks,
Shawn

Reply via email to