couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Update of "View_Snippets" by SeggyUmboh
Date Tue, 26 Oct 2010 05:46:35 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "View_Snippets" page has been changed by SeggyUmboh.
http://wiki.apache.org/couchdb/View_Snippets?action=diff&rev1=39&rev2=40

--------------------------------------------------

  }
  }}}
  
- However, if you have more than just a few fields that need to be tested for absense you
can use another approach instead of creating a view for each negation:
+ However, if you have more than just a few fields that need to be tested for absence you
can use another approach instead of creating a view for each negation:
  
  {{{#!highlight javascript
  function (doc) {
-   // List of fields to test for abcense in documents, fields specified here will be emitted
as key
+   // List of fields to test for absence in documents, fields specified here will be emitted
as key
    var fields = new Array("type", "role", "etc");
  
    // Loop through our fields

Mime
View raw message