I am trying to do a $near query with MongoDB using Spark and mongo-hadoop with lat/lon coordinates that change. How can I do a query with mongo-hadoop?
Apart from somethnig like:
mongodbConfig.set("mongo.input.query", "{'field':'value'}")
I cannot see anything with sense.
any idea?
I suggest you can see the
com.mongodb.hadoop.util.MongoConfigUtil
, there are lots of config query settings: