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