couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antony Blakey <antony.bla...@gmail.com>
Subject Re: newbie question #1
Date Sun, 28 Dec 2008 13:54:10 GMT

On 29/12/2008, at 12:17 AM, Geir Magnusson Jr. wrote:

> Ok, cool.  So... can key be something else?  Or should I assume that  
> "key" is a synonym for "_id"?

When querying a view, the key may not be (is very likely to not be)  
the same as the document id. In a view with a reduce function, there  
isn't a document id per result because the result is a combination of  
documents.

Have a look here:

   http://wiki.apache.org/couchdb/Reference

specifically the view api.

Antony Blakey
-------------
CTO, Linkuistics Pty Ltd
Ph: 0438 840 787

A reasonable man adapts himself to suit his environment. An  
unreasonable man persists in attempting to adapt his environment to  
suit himself. Therefore, all progress depends on the unreasonable man.
   -- George Bernard Shaw



Mime
View raw message