On 5/15/2017 11:31 PM, Noriyuki TAKEI wrote:
> I update some fields by Solj Atomic Update.But in 
> particular case, an error occurred.
>
> When I try to set  the value "2017-01-01" to date filed
> by Solrj Atomic Update,the following error message appears.

If the field is using the TrieDateField class, or one of the deprecated
date classes, then that is not a valid date string.  You need the full
ISO timestamp.  The milliseconds in the following string are the only
part that's optional:

2017-01-01T00:00:00.000Z

If you use DateRangeField instead of TrieDateField, then you can send your 
partial timestamp string, and Solr will do the right thing.  But you'll have to 
wipe the index and rebuild it if you change your schema.

https://cwiki.apache.org/confluence/display/solr/Working+with+Dates
https://wiki.apache.org/solr/HowToReindex

Thanks,
Shawn

Reply via email to