OK, looks like there is no _sum() builtin. Anyone care to share an example 
sum function? :-)

On Monday, February 23, 2015 at 5:34:08 PM UTC-5, Eno wrote:
>
> The design doc in this database, from 
> http://localhost:5984/database/_design/fabric is:
>
> "doc": {
>                 "language": "javascript",
>                 "version": 1,
>                 "views": {
>                     "seen": {
>                         "map": "function(doc) { if (doc.threadId && 
> doc.comments) { emit(doc.threadId.toLowerCase(), doc.comments); } }",
>                         "reduce": "_sum"
>                     }
>                 },
>                 "_rev": "1-682802a943cdabb7a6e51f1757f1d18b",
>                 "_id": "_design/fabric"
>             },
>             "id": "_design/fabric",
>             "key": "_design/fabric",
>             "value": {
>                 "_conflicts": [],
>                 "rev": "1-682802a943cdabb7a6e51f1757f1d18b"
>             }
>
> So Im trying to call 
> http://localhost:5984/database/_design/fabric/_view/seen and get the 
> error:
>
> {
>     "error": "not_found",
>     "reason": "Router unable to route request to 
> do_GET_DesignDocumentjava.lang.reflect.InvocationTargetException"
> }
>
>
> What am I doing wrong?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/4e2b6190-5ed8-4885-b2b6-a356f31449aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to