title: How to query a dynamodb2 index using boto?
body: <p>How can I query a dynamodb2 table with an index using boto? I'm not able to piece together enough information from the documentation or unit tests for boto.</p>
  
  <p>I have a local index created as:</p>
  
  <pre><code>fields.KeysOnlyIndex('NameIndex', parts=[
      fields.HashKey('account_id', data_type='S'),
      fields.RangeKey('name', data_type='S'),
  ])
  </code></pre>
  
  <p>And would like to lookup an item using the <code>account_id</code> and <code>name</code>.</p>
  
  <p>Attempting to make the call <code>table.query( account_id__eq=account['id'], name__eq = name )</code> results in the error <code>Query condition missed key schema element id</code>.</p>
  
  <p>Note: I would also prefer to avoid using the <code>Table</code> class and work directly with the connection.</p>