You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Luca Morandini <lm...@ieee.org> on 2014/08/11 09:17:16 UTC

[SOLVED] Re: Missing function error

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.org, 
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.

Regards,

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