title: How to specify a hashed shard key using mongoengine?
body: <p>I currently have a document that looks something like:</p>
  
  <pre><code>class Document(db.Document):
     item1 = db.StringField()
     item2 = db.StringField()
  </code></pre>
  
  <p>I would like to define the shard key within mongoengine like <a href="https://mongoengine-odm.readthedocs.org/guide/defining-documents.html#shard-keys" rel="nofollow" title="this">this</a>. However, I would like define the shard key as a <a href="http://docs.mongodb.org/manual/tutorial/shard-collection-with-a-hashed-shard-key/" rel="nofollow" title="hashed shard key">hashed shard key</a> on the document id. Is it possible to do this within mongoengine? If so, could you steer me in the right direction?</p>