Hello,

     I am trying to use the DateRangeField and ran into an interesting issue.  
According to the documentation 
(https://lucene.apache.org/solr/guide/7_6/working-with-dates.html), these are 
both valid for the DateRangeField: 2000-11 and 2000-11T13.  I can confirm this 
is working in 7.6.  I would also expect to be able to use 2000T13, which would 
mean any time in the year 2000 between 1300 and 1400.  However, I get an error 
when trying to insert this value:


"error":{"metadata":

    
["error-class","org.apache.solr.common.SolrException","root-error-class","java.lang.NumberFormatException"],

    "msg":"ERROR: Error adding field 'dtRange'='2000T13' msg=Couldn't parse 
date because: Improperly formatted date: 2000T13","code":400

}


I am using 7.6 with a super simple schema containing only _version_ and a 
DateRangeField and there's nothing special in my solrconfig.xml.  Is this 
behavior expected?  Should I open a jira issue?


Thanks,

Jeremy

Reply via email to