incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Kempf <jochenke...@gmail.com>
Subject Re: Problems with date field in Lucene
Date Mon, 10 May 2010 16:11:37 GMT
Thanks - that indeed fixed the issue!

2010/5/10 Robert Newson <robert.newson@gmail.com>

> 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 <jochenkempf@gmail.com>
> 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.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