incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Ronchetti <bruno.ronche...@mac.com>
Subject Re: couchdb-lucene javascript error missing parenthesis
Date Fri, 26 Feb 2010 13:54:03 GMT
Hi Krishna,

when I run your JSON through a JSON validator (www.jsonlint.com) it says that there is an
invalid character between  rec.add(doc);   and   return rec;}".

I would try to get a valid JSON in jsonlint first and then pasting the expression into your
view.

Hope this helps.

Regards. Bruno



On 26/feb/2010, at 12.48, km wrote:

> {
>   "_id": "_design/lucene",
>   "_rev": "3-26665646212b049662ed2ff34c4319b3",
>   "fulltext": {
>       "byid": {
>           "index": "function(doc){ var rec = new Document(); rec.add(doc);
> return rec;}"
>       }
>   }
> }


Mime
View raw message