I\'m just trying to get a simple near query working. Here\'s a sample of my document.
near
{\"point\": {\"type\": \"Point\", \"coordinates\"
db.prod.createIndex({ "location": "2d" })
This solved for the same issue for me.
Where prod is my collection name and location is name of column which stores geo location (GeoPoint)
Some discussion about the same can be found here