couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Kempf <>
Subject Problems with date field in Lucene
Date Mon, 10 May 2010 15:20:01 GMT
I am trying to add a date field to a index view in CouchDB Lucene but
whatever I try I always get a "caused Unable to parse the date:

Here is the easiest code example I tried:

"index":"function(doc) {
var result = new Document();
var mydate = new Date(2010, 4, 10);
result.add(mydate, {'field':'mydate', 'type': 'date', 'store':'yes'});
result.add(doc.year, {'field':'year', 'store':'yes'});
result.add(doc.month, {'field':'month', 'store':'yes'});
result.add(, {'field':'day', 'store':'yes'});
return result;
Any suggestions?

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message