I'm trying to create a compound key as my "_id" field, which takes in some geo information as well as other attributes. It looks something like:
{_id: {lat: 50, lon: 50, name: "some name"}}
After creating the document, mongo assigns an index by default, and ignores my command
db.coll.ensureIndex(_id: "2d")
Is there a way to do this so I can have my _id field index-able by both geo-index and regular index?