Filter data by two or more fields in document

Arrays can have more than two elements.

You might also want to read http://guide.couchdb.org/draft/views.html