couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jens Alfke <>
Subject Re: Exclude documents from view based on list of regex expressions
Date Tue, 18 Sep 2012 16:40:50 GMT

On Sep 18, 2012, at 8:51 AM, Carl Bourne <<>>

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 contains a value that matches
a list of regex expressions.

The map function should contain an array of regexes, and match the against
each one in turn. If it matches any of them, just return, else emit whatever the appropriate
key/value are.


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