You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2010/10/26 07:46:35 UTC

[Couchdb Wiki] Update of "View_Snippets" by SeggyUmboh

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