English 中文(简体)
5. 接纳所有男女同仁 载有观点要点的行文文件
原标题:Get all CoudhDB documents which contain subset of view keys
  • 时间:2011-11-03 20:44:57
  •  标签:
  • couchdb

我收到下列文件:

{
   _id:  id1 ,
   tags: [ a ,  b ]
}

{
   _id:  id2 ,
   tags: [ b ,  c ,  d ]
}

{
   _id:  id3 ,
   tags: [ c ,  d ,  e ]
}

Now I want to get all documents, where ALL tags are a subset of a given set. For example the view keys [ a , b , c , d ] should return doc id1 and id2 but not document with id3 , because it contains the tag e which is not in the requested keys.

How would you write such a view in CouchDB?

问题回答

暂无回答




相关问题
couchdb for /really/ distributed replica

let s say i want to implement a distributed database (each node being the replica of the others); i hear that cdb is able to easily sync between two nodes and at least support some form of conflict ...

CouchDB View, Map, Index, and Sequence

I think read somewhere that when a View is requested the "map" is only run across documents that have been added since the last time it was requested? How is this determined? I thought I saw something ...

representing a many-to-many relationship in couchDB

Let s say I m writing a log analysis application. The main domain object would be a LogEntry. In addition. users of the application define a LogTopic which describes what log entries they are ...

couchDB , python and authentication

I have installed couchDB v 0.10.0, and am attempting to talk to it via python from Couch class downloaded from couchDB wiki. Problem is: Create database mydb : { error : unauthorized , reason : ...

Temp View Caching?

I m using CouchDB with a home-grown C# interface library. The most common method of accessing CouchDB with this library results in a temp view being created. I ve optimized the library so that it uses ...

热门标签