incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry White <ljw1...@gmail.com>
Subject noobie problem getting view results
Date Sun, 04 Sep 2011 12:06:09 GMT
Hi,
I'm sending a query that looks like this:

http://localhost:5984/better1/_design/all_products

and I get the view query text, instead of the results:

{"_id":"_design/all_products","_rev":"5-0263a7865636ac57eae960b8ad2b63ac","language":"javascript","views":{"all
products":{"map":"function(doc) {\n if (doc.drr_class=='Product') {
\n\temit(null, doc); \n\t} \n}"}}}

How do I get the actual results (ie a list of 'products'). It works
fine from within the Couchbase web interface.

Thanks much.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message