title: Can a view in Cloudant be filtered on parameters that weren't part of it's key
body: <p>I want to be able to search emitted docs from a view, on fields that weren't part of it's generation but rather fields that are added by way of linked documents. </p>
  
  <p><a href="http://wiki.apache.org/couchdb/Introduction_to_CouchDB_views#Linked_documents" rel="nofollow">As explained in the docs</a></p>
  
  <p>If these were my records: 
  <code>
      [
      { "_id": "11111" , "name": "pandora" },
      { "_id": "22222", "ancestors": ["11111"], "value": "hello" },
      { "_id": "33333", "ancestors": ["22222","11111"], "value": "world" }
      ]</code></p>
  
  <p>and the view was this: </p>
  
  <pre><code>    function(doc) {
      if (doc.value) {
      emit([doc.value, 0], null);
      if (doc.ancestors) {
        for (var i in doc.ancestors) {
          emit([doc.value, Number(i)+1], {_id: doc.ancestors[i]});
        }
      }     
  </code></pre>
  
  <p>Would it be possible to search the returned docs by sorting on 'name' ??</p>