couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Kempf <jochenke...@gmail.com>
Subject Problems with date field in Lucene
Date Mon, 10 May 2010 15:20:01 GMT
Hi,
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:
ORG.MOZILLA.JAVASCRIPT.NATIVEDATE@19E11A1" error.

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(doc.day, {'field':'day', 'store':'yes'});
return result;
}"
Any suggestions?

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