rnewson / couchdb-lucene

Enables full-text searching of CouchDB documents using Lucene
Apache License 2.0
769 stars 145 forks source link

"yyyy-MM-dd'T'HH:mm:ss.SSSZ" date format not supported #225

Open mandric opened 9 years ago

mandric commented 9 years ago

"yyyy-MM-dd'T'HH:mm:ss.SSS" format works for me but when including the Z character at end I get a 400 error. Wondering if this is my specific installation or not. This is on 1.0.2.

// fails

reported_date<date>:[2015-07-27T13:14:40.564Z TO 3000-01-01T00:00:00]
{"reason":"Bad query syntax: Cannot parse ...", "code": 400}

// works

reported_date<date>:[2015-07-27T13:14:40.564 TO 3000-01-01T00:00:00]