couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carl Bourne <carl.bou...@me.com>
Subject Exclude documents from view based on list of regex expressions
Date Tue, 18 Sep 2012 15:51:31 GMT
Hi,

Whats the best approach for excluding documents from a view based on a list of regex expressions.
For example I want to exclude anything where doc.issue.name contains a value that matches
a list of regex expressions.

e.g. exclusion list: [/foo/, /bar/]

{
"_id": "1",
"issue": {
    "name": "foo"
}

{
"_id": "2",
"issue": {
    "name": "bar"
}

{
"_id": "3",
"issue": {
    "name": "fred"
}

So based on the documents above, just return the document where doc.issue.name = "fred"


Best Regards, 

Carl

Mime
View raw message