title: Multiple key search in CouchDB
body: <p>Given the following object structure:</p>
  
  <pre><code>{
     key1: "...",
     key2: "...",
     data: "..."
  }
  </code></pre>
  
  <p>Is there any way to get this object from a CouchDB by quering both key1 and key2 without setting up two different views (one for each key) like:</p>
  
  <pre><code>select * from ... where key1=123 or key2=123
  </code></pre>
  
  <p>Kind regards,
  Artjom</p>
  
  <p><strong>edit:</strong></p>
  
  <p>Here is a better description of the problem:
  The object described above is a serialized game state. A game has exactly one creator user (key1) and his opponent (key2). For a given user I would like to get all games where he is involved (both as creator and opponent).</p>