title: Morphia Query on Array of Subdocuments using elem
body: <p>I have the following document structure in mongodb collection "Contact". There is an array of subdocuments called "numbers":</p>
  
  <pre><code>{
      "name" : "Bill",
      "numbers" : [
          {
              "type" : "home",
              "number" : "01234",
          },
          {
              "type" : "business",
              "number" : "99099"
          },
          {
              "type" : "fax",
              "number" : "77777"
          }
      ]
  }
  </code></pre>
  
  <p>When I want to query only for "home" and "business" numbers, I can do something like this in mongodb-shell:</p>
  
  <pre><code>db.Contact.find({ numbers: { $elemMatch: { 
          type : { $in : ["home", "business"]}, 
          number: { $regex : "^012" }
  }}});
  </code></pre>
  
  <p>But how to do this in morphia? Is there any way?</p>
  
  <p>I understand "$elemMatch" is supported in morphia. So I could do something like:</p>
  
  <pre><code>query.filter("numbers elem", ???);
  </code></pre>
  
  <p>But how exactly do I add a combined query for the subdocument?</p>