title: how to search for values when the selector is an array
body: <p>I have the following json document on my couch db.</p>
  
  <pre><code>{ 
    {
        "_id": "someid|goes|here",
        "collected": {
            "tags": ["abc", "def", "ghi"]
        }
    },
    {
        "_id": "someid1|goes|here",
        "collected": {
             "tags": ["abc", "klm","pqr"]
        },
    },
    {
        "_id": "someid2|goes|here",
        "collected": {
             "tags": ["efg", "hij","klm"]
        },
    }
  }
  </code></pre>
  
  <p>How can I get the records where <code>collected.tags</code> contains <code>abc</code>? What I have tried so far is </p>
  
  <pre><code>{
     "selector": {
        "collected.tags": {
           "$regex": "abc"
        }
     }
  }
  </code></pre>