title: How to set a 2D index in Play Morphia?
body: <p>How do I set a 2D index in play morphia?</p>
  
  <p>Example:</p>
  
  <pre><code>db.places.ensureIndex( { loc : "2d" } )
  </code></pre>
  
  <p><a href="http://www.mongodb.org/display/DOCS/Geospatial+Indexing" rel="nofollow">http://www.mongodb.org/display/DOCS/Geospatial+Indexing</a></p>