couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bsquared <bwcod...@gmail.com>
Subject Re: Erlang view question
Date Mon, 13 Feb 2012 16:39:03 GMT
An additional question came up.  I added the code from the couchdb wiki
EnableErlangView page and I am getting an error when running a view -
the existing javascript view as well.

    Error: compilation_error

    Expression does not eval to a function. ((new String("fun({Doc}) ->\n
    <<K,_/binary>> = proplists:get_value(<<\"_rev\">>, Doc, null),\n
 V =
    proplists:get_value(<<\"_id\">>, Doc, null),\n  Emit(<<K>>,
    V)\nend.\n")))

I have verified the configuration in the configuration page in futon.
[native_query_servers]
erlang = {couch_native_process, start_link, []}


Is there some configuration I have neglected?

Thank you.

--
Regards,
Brian


Mime
View raw message