Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用 kundera 执行以下 mongodb 查询
db.storemaster.find( { loc: { $near : {$geometry: { type: \"Point\", coordinates: [ 78.35249829999998, 17.4613602 ] }, $maxDistance: 5000 } }})
帮我..
你试过用吗?
String execScript = "db.storemaster.find( { loc: { $near : {$geometry: { type: \"Point\", coordinates: [ 78.35249829999998, 17.4613602 ] }, $maxDistance: 5000 } }}).toArray()"; Object result = (client).executeScript(execScript);
查维