Thanks - that indeed fixed the issue! 2010/5/10 Robert Newson <[email protected]>
> Please ensure you are using the 0.5.0 release, several date-related > bugs were fixed a few days before the release. > > To be sure you have the right artifacts, consider using the official > zip: > http://github.com/downloads/rnewson/couchdb-lucene/couchdb-lucene-0.5.0-dist.zip > > B. > > On Mon, May 10, 2010 at 4:20 PM, Jochen Kempf <[email protected]> > wrote: > > 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.natived...@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? > > >
