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;}"
> }
> }
> }