: The following field value for a date field type is accepted:
: <field name="somedate">-0001-11-30T00:00:00Z</field>
: 
: and ends up in the index and as stored value as:
: <date name="somedate">2-11-30T00:00:00Z</date>
: 
: I'd prefer to be punished with an exception. File a bug?

That is actualy a legal date according to the format spec (although there 
is seems to be some conflicting guidelines about wether the format allows 
a year "0" which makes the interpretation of negative years ambiguious (at 
least to me)

There is however already a known bug in SOlr with parsing/formatting dates 
prior to year 1000...

https://issues.apache.org/jira/browse/SOLR-1899

...patches most certainly welcome.


-Hoss

Reply via email to