Hello,

due a different Bug in another system, we stored a date in a datefield
with an value like "999-12-31T23:00:00Z". As you can see in the schema
browser below, solr stores it correct with four digits but in a response
the leading zero is missing.

My question is: is a three digit year a valid ISO-8601 date format for
the response or is this a bug? Because other languages (f.e. python) are
throwing an exception with a three digit year?!

Response: 
<doc>
...
<date name="effective">999-12-31T23:00:00Z</date>
....
</doc>

Schema browser: 
Field: effective
Field Type: date
Properties: Indexed, Tokenized, Stored, undefined
Schema: Indexed, Tokenized, Stored, undefined
Index: Indexed, Tokenized, Stored
Index Analyzer: org.apache.solr.analysis.TokenizerChain Details
Query Analyzer: org.apache.solr.analysis.TokenizerChain Details
Docs: 86727
Distinct: 4
term    frequency
0999-12-31T23:00:00Z            165602
2011-11-05T23:00:00Z            3543
2011-10-19T07:22:20.908Z        2
2011-10-12T15:40:00Z            2

Thx and best regards,

Axel 


Reply via email to