我想使用kundera
在mongodb查询下执行 db.storemaster.find( { loc: { $near : {$geometry: { type: \"Point\", coordinates: [ 78.35249829999998, 17.4613602 ] }, $maxDistance: 5000 } }})
帮帮我......
答案 0 :(得分:2)
你尝试过使用吗?
String execScript = "db.storemaster.find( { loc: { $near : {$geometry: { type: \"Point\", coordinates: [ 78.35249829999998, 17.4613602 ] }, $maxDistance: 5000 } }}).toArray()";
Object result = (client).executeScript(execScript);
Chhavi