incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luca Morandini <>
Subject [SOLVED] Re: Missing function error
Date Mon, 11 Aug 2014 07:17:16 GMT
On 11/08/14 11:18, Luca Morandini wrote:

It turned out that this error is triggered when the string declaring the function 
does not contain a function, like in:
"by_type": {
        "map": "function (doc) {\n    if (doc.type) {\n        emit(, 
doc);\n    }\n}",
        "reduce": ""

(note the empty reduce function)

We are glad the issue turned out to be easily solved, but a more descriptive error 
message would have helped us.


Luca Morandini
Data Architect - AURIN project
Melbourne eResearch Group
Department of Computing and Information Systems
University of Melbourne
Tel. +61 03 903 58 380
Skype: lmorandini

View raw message